flash messages wont appear in rails -


i'm doing flash messages app when redirect main page wont apear...

i have index this

def index end 

and have method makes flash message when form makes request this:

def request    flash[:notice] = in_words(params[:number].to_i)     redirect_to root_path  end 

my app layout.html.erb looks this:

<% if flash[:notice] %>     <div class="alert alert-success">         <button class="close" data-dismiss="alert">x</button>         <%= flash[:notice] %>       </div> <% end %> 

im looking @ terminal , several jumps , think thats why flash messages wont keep tried found here writing in application controller this:

alias :std_redirect_to :redirect_to def redirect_to(*args)    flash.keep    std_redirect_to *args end 

but still wont apear, simple message doing wrong? in advance help


Comments