1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Piotr Sarnacki 6c95e0f879 Add mounted_helpers to routes
mounted_helpers are a bit similar to url_helpers. They're automatically
included in controllers for Rails.application and each of mounted
Engines. Mounted helper allows to call url_for and named helpers for
given application.

Given Blog::Engine mounted as blog_engine, there are 2 helpers defined:
app and blog_engine. You can call routes for app and engine using those
helpers:

app.root_url
app.url_for(:controller => "foo")
blog_engine.posts_path
blog_engine.url_for(@post)
2010-09-03 22:59:07 +02:00
..
abstract_controller Add mounted_helpers to routes 2010-09-03 22:59:07 +02:00
action_controller Add mounted_helpers to routes 2010-09-03 22:59:07 +02:00
action_dispatch Add mounted_helpers to routes 2010-09-03 22:59:07 +02:00
action_pack Master is now targeting 3.1.0.beta 2010-08-23 21:44:57 -05:00
action_view Merge remote branch 'docrails/master' 2010-09-03 21:30:22 +02:00
abstract_controller.rb Be sure to call helper :all just on direct children. (Tests by Jesse Storimer) 2010-08-26 18:20:22 -03:00
action_controller.rb Revert "Setup explicit requires for files with exceptions. Removed them from autoloading." 2010-09-02 21:11:03 +02:00
action_dispatch.rb Add a header that tells Internet Explorer (all versions) to use the best available standards support. This ensures that IE doesn't go into quirks mode because it has been blacklisted by too many users pressing the incompatible button. It also tells IE to use the ChromeFrame renderer, if the user has installed the plugin. 2010-07-27 19:25:07 -07:00
action_pack.rb Updating copyright dates on all licenses 2010-02-01 10:10:53 +11:00
action_view.rb Cleaned up autoload definitions. 2010-09-02 11:53:58 +02:00