Reputation: 85
How does one find out which controller or which action they are in from an erb template in Rails?
Upvotes: 1
Views: 130
Reputation: 74945
<%= controller_name %> <%= action_name %>
Upvotes: 6