Hi there,
I''m working on a little app with internationalization.
When I try to create links like say :
link_to "See post", @post
The application crashes saying that there is a Routing error, that
:locale contains my Post.
My route for posts is like this : map.resources :posts,
:path_prefix => '':locale''
In my app controller I added :
def default_url_options(options={})
{ :locale => I18n.locale }
end
Any idea of what I''m missing or doing wrong ?
Thanks :)
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.