If you ned the controller / action name while in a controller, the #controller_name and #action_name methods will return the same thing as params[:controller] and params[:action]. The Rails guides actually recommend using those methods instead of the values from the params hash.