How do i display the name of the current controller and action?
2005/10/24, Lindsay Bernath <hellolindsay@gmail.com>:> How do i display the name of the current controller and action?Use params[:controller] and params[:action] Bye ! François _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Mon, Oct 24, 2005 at 01:32:20PM -0400, Lindsay Bernath wrote:> How do i display the name of the current controller and action?In a view these are available as controller.action_name controller.controller_name. e.g. Hello and welcome to the <%= controller.action_name %> page marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org>