Thursday, 30 August 2012

know the controller and action in view



Just write the below code in your  to know current controller name in a view the right path is

<%= controller.controller_name %>
<%= controller.action_name %>

No comments:

Post a Comment