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