search for: current_organization

Displaying 1 result from an estimated 1 matches for "current_organization".

2011 Oct 05
0
Optional Dynamic Prepended Route via scope
...ous resources such as systems are scoped off of the organization. So, the organization can change dynamically and so as to be restful we want to prepend the organization to each route within that scope. Following the Rails guides, I attempted to use: default_url_options() { :organization => current_organization.name } end Which generated URLs in the way desired, e.g. /Organization1/system/ However, the URLs generated (via _path() calls, e.g. dashboard_path()) include the extra paramter ?organization=Organization1 which is not the behavior desired for this application. My question then is - is it possibl...