I am quite new to rails...
I am having an issue with displaying of flash messages...
Am displaying it in views as well as application.html.erb (layout file)
in the view i just have
flash[:notice]
and in the application.html.erb I have
flash.each do |name, msg|
content_tag :div, msg, :id => "flash_#{name}"
end
I want to display all the flash messages at once, currently with the above structure, it displays in two different locations... I found a post very similar to what I wanted to do... This might explain it clearly : http://pupeno.com/blog/ensuring-the-displaying-of-flash-messages-in-ruby-on-rails/ The solution provided here din't work...
any help?