Use controller_name and action_name over params[:controller] and params[:action].