Actions
Bug #2018
closedurl_for() helpers are namespaced when adding plug-in engines. add forward /
Description
from Rails documetation: http://apidock.com/rails/ActionController/Base/url_for
If the controller name begins with a slash no defaults are used:
url_for :controller => '/home'
In particular, a leading slash ensures no namespace is assumed. Thus, while url_for :controller => 'users' may resolve to Admin::UsersController if the current controller lives under that module, url_for :controller => '/users' ensures you link to ::UsersController no matter what.
Updated by Joseph Magen about 12 years ago
Updated pull request
https://github.com/theforeman/foreman/pull/285
Updated by Anonymous about 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 875699d96185275f4e5f16e536c08a1efcdf3f37.
Actions