Project

General

Profile

Bug #2018

url_for() helpers are namespaced when adding plug-in engines. add forward /

Added by Joseph Magen over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

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.

Associated revisions

Revision 875699d9 (diff)
Added by Joseph Magen over 9 years ago

fixes #2018 add forward slash to controller name of url_for() helper

History

#1 Updated by Ohad Levy over 9 years ago

  • Target version set to 1.1

#3 Updated by Anonymous over 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF