Project

General

Profile

Actions

Bug #2018

closed

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

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
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.

Actions #1

Updated by Ohad Levy over 11 years ago

  • Target version set to 1.1
Actions #3

Updated by Anonymous over 11 years ago

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

Also available in: Atom PDF