So, I have content_forinside my view to log in and in the session controller, I have render :newit when the user does not enter valid credentials. However, when it does render :new, I get a black and white page without any css or js. This is what mycontent_for
<% content_for :head do %>
<%= stylesheet_link_tag "user_sessions/new" %>
<%= javascript_include_tag 'user_sessions/new.onready' %>
<% end %>
Is there any work to make sure the previous code will be executed when I do render?
source
share