Recode
Recode

Reputation: 85

How do you find out what controller and action you are in?

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

Upvotes: 1

Views: 130

Answers (1)

molf
molf

Reputation: 74945

<%= controller_name %>
<%= action_name %>

Upvotes: 6

Related Questions