views:

42

answers:

1

How does one find out which controller or which action they are in from an erb template in Rails?

+5  A: 
<%= controller_name %>
<%= action_name %>
molf