- multiple sub-directory in standard application => works OK using absolute "/" at the front of the controller value specified in a "link_to"
- installed engine plugin and moved the multiple sub-directory controller/view to my test engine => worked ok again with absolute value
- moved the links (link_to's) from the individual views to an application wide layout => seemed to work ok again
- introduced the :locale into the routes, and after some adjustments (i.e. putting in a
default :locale of nil for each route) got this working too
Any comments?
Cheers
Greg
PS routes.rb file from test application
=====================================
ActionController::Routing::Routes.draw do |map|
map.connect ':locale/singlelevel',
:controller => 'single', :action ="" 'testaction',
:defaults => {:locale => 'nil'}
map.connect ':locale/multilevel',
:controller => 'parent/child', :action ="" 'testaction',
:defaults => {:locale => 'nil'}
map.connect ':locale',
:controller => 'single', :action ="" 'index',
:defaults => {:locale => 'nil'}
end
=====================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/rubyonrails-core
-~----------~----~----~----~------~----~------~--~---
