Is there a field or method I can lookup within an .html.erb
file that will tell me the current action used to render the page? This code would be in a partial. I'm looking for something like this:
<% if @action == :new %>
this is new
<% end %>
Is there a field or method I can lookup within an .html.erb
file that will tell me the current action used to render the page? This code would be in a partial. I'm looking for something like this:
<% if @action == :new %>
this is new
<% end %>