This project is archived and is in readonly mode.
Named routes outside of controller/view confusion
-
Felix Sun
Also seems that these named routes helpers not available in action view templates, I have to do:
module ApplicationHelper include Rails.application.routes.url_helpers endIn my application, Is that should be included by default?
-
Repository
- State changed from new to resolved
(from [02ab7890bfe87fbd5fd3b3fba04dca9bf22255c9]) Fix a mistake in the documentation (ht: Evgeniy Dolzhenko) [#4217 Named routes outside of controller/view confusion state:resolved] http://github.com/rails/rails/commit/02ab7890bfe87fbd5fd3b3fba04dca...
-
Yehuda Katz (wycats)
- Assigned user set to Yehuda Katz (wycats)
- Milestone cleared.
The helpers should be available in views. Can you make sure this is still true on master?
-
Evgeniy Dolzhenko
Great, thanks!
Helpers are indeed available in views for for me.
