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/action_controller
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
..
caching Escape 'caching' when used in a sentence; remove unnessesary quotes 2010-08-26 21:58:57 +02:00
deprecated Remove deprecated support to <% form_for %> and several ActionController::Base methods. 2010-08-29 21:08:14 -03:00
metal Ensure that env is always available in controllers 2010-09-03 22:59:06 +02:00
railties Add mounted_helpers to routes 2010-09-03 22:59:07 +02:00
vendor Use join instead of looping and calling to_s [#5492 state:resolved] 2010-09-01 09:46:30 +02:00
base.rb Remove deprecated support to <% form_for %> and several ActionController::Base methods. 2010-08-29 21:08:14 -03:00
caching.rb Escape 'caching' when used in a sentence; remove unnessesary quotes 2010-08-26 21:58:57 +02:00
deprecated.rb Remove deprecated support to <% form_for %> and several ActionController::Base methods. 2010-08-29 21:08:14 -03:00
log_subscriber.rb Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] 2010-06-24 13:23:43 +02:00
metal.rb Ensure that env is always available in controllers 2010-09-03 22:59:06 +02:00
middleware.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
railtie.rb Add mounted_helpers to routes 2010-09-03 22:59:07 +02:00
record_identifier.rb No need to delegate. Simply include the whole RecordIdentifier module. 2010-07-21 11:46:38 +02:00
test_case.rb escape constant names 2010-08-26 23:10:00 +02:00