There is a way to insert all the pages of a controller in the current_page?() method?
<%if (!current_page?(:controller=>'users'))%>
...
<%end>
If I don't insert the :action attribute don't work!
I must to insert the attribute :action if i want to make a control for a specific action.
I would to consider all of the pages of the controller named users.
Instead of using current_page, you can check the controller name directly:
<% if controller.controller_name != "users" %>
...
<% end %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With