Please sign in to comment.
Added :alert, :notice, and :flash as options to ActionController::Bas…
…e#redirect_to that'll automatically set the proper flash before the redirection [DHH] Added ActionController::Base#notice/= and ActionController::Base#alert/= as a convenience accessors in both the controller and the view for flash[:notice]/= and flash[:alert]/= [DHH]
- Loading branch information...
Showing with 98 additions and 11 deletions.
- +11 −0 actionpack/CHANGELOG
- +14 −5 actionpack/lib/action_controller/base.rb
- +42 −0 actionpack/lib/action_controller/flash.rb
- +28 −1 actionpack/test/controller/flash_test.rb
- +2 −4 railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb
- +1 −1 railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb