I am trying to understand why redirect_to only accepts :notice and :alert

https://github.com/rails/rails/blob/ead93c5be5b0f1945b7d0302f1aae4685ee3f2fb/actionpack/lib/action_controller/metal/flash.rb#L12

Is there any reason I may be missing to not allow something like
:success like this:

redirect_to suppliers_path, :success => 'Supplier was successfully created.' }

- Noel

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to