Hello everybody,

I have a few hobo sites I had to internationalize.
In the rails guide, they explain these things :

  # app/controllers/application_controller.rb
def default_url_options(options={})
   logger.debug "default_url_options is passed options:
#{options.inspect}\n"
   { :locale => I18n.locale }
 end

  # config/routes.rb
 scope "(:locale)", :locale => /en|nl/ do
   resources :books
 end

And the goal is to have urls like
http://mydomain.com/en/books

In these projects, I have simply copied the content of hobo_routes into the
scope.

But is there a cleaner way to integrate it ?

Thanks for any answer :-)
Arnaud.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to