I\'m still working on my rails 4 demo site, and I\'m seeing an odd thing. In the controller it has a line like this:
format.html { redirect_to @widget, notic
Add this to
class ApplicationController
add_flash_types :success, :warning, :danger, :info
end
and then you can do this in your controllers
format.html { redirect_to @widget, success: 'Widget was successfully created.' }
provided you did this in your layouts
<% flash.each do |key, value| %>
<%= value %>
<% end %>
<%= yield %>