I am having an issue where I cannot get the notice to show up on a
custom action in redirect_to
in the routes I have this defined:
match ‘launches/calendar’ => ‘launches#calendar’
in the launches controller I have these entries:
@launches = Launch.all
@date = params[:month] ? Date.parse(params[:month]) : Date.today
@launch = Launch.find(params[:id])
redirect_to :action =>‘calendar’, :notice => “Successfully
render :action => ‘edit’
in the calander view file I have the following:
<%= notice %>
but nothing ever shows up.
I am sure I am making a silly mistake here. Just can’t find it.