Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [e6cadd422b72ba9818cc2f3b22243a6aa754c9f8] by David Heinemeier Hansson

Revision e6cadd422b72ba9818cc2f3b22243a6aa754c9f8, committed by David Heinemeier Hansson · December 17th, 2009 @ 07:34 PM

Added :alert, :notice, and :flash as options to ActionController::Base#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]
http://github.com/rails/rails/commit/e6cadd422b72ba9818cc2f3b22243a...

6 changed files

  • M actionpack/CHANGELOG
  • M actionpack/lib/action_controller/base.rb
  • M actionpack/lib/action_controller/flash.rb
  • M actionpack/test/controller/flash_test.rb
  • M railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb
  • M railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb