Top "Rails-flash" questions

In Rails framework, The flash is a special part of the session which is cleared with each request.

How to display a Rails flash notice upon redirect?

I have the following code in a Rails controller: flash.now[:notice] = 'Successfully checked in' redirect_to check_in_path …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2 ruby-on-rails-4 rails-flash
Rails doesn't display flash messages after ajax call

I'm writing a rails 4.0.2 app, and am trying to get a Flash notice to display in my view after an …

javascript ruby-on-rails ajax ruby-on-rails-4 rails-flash
Accessing rails flash[:notice] in a model

I am trying to assign a message to flash[:notice] in a model observer. This question has already been asked: …

ruby-on-rails activerecord rails-flash
Rails flash with warning, alert and error not shown; only notice shown

In my view, I have: <% flash.now[:error] = "ERROR FLASH" %> <% flash.now[:notice] = "NOTICE FLASH" %> <% …

ruby-on-rails rails-flash
How can I clear out the Rails flash object after responding to an Ajax request?

I am doing this type of thing for some of my controller actions: def my_method flash[:notice] = "Success." respond_…

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2 rails-flash