-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong url generation with scope declared #59
Comments
Hi @aboutlo thanks for the feedback. Will take a look into this over the next few days. |
@aboutlo can you walk me through what you're trying to do here? Where are you storing the static pages with translations? |
I am storing my pages directly to /app/views/mypage.html.erb without any content_path prefix configured. |
Cool, that approach makes sense. I mocked up a test application using I will continue to look into a solution that will allow us to remove |
Any news on this? |
@jmuheim no luck just yet. Its unclear to me how we're going to fix this one. I suppose we could try to override the |
How are we getting on with this? Also, should I be experiencing issues linking to nested pages? E.g.
Doesn't understand the |
define a route like that:
scope "/(:locale)" do
match "/*id" => 'high_voltage/pages#show', :as => :page, :format => false
end
create a link with this helper:
page_path("about")
you get:
No route matches {:controller=>"high_voltage/pages", :action=>"show", :locale=>"about"}
rather using page_path(:id => "about") it works fine and you get "/locale/tour"
The text was updated successfully, but these errors were encountered: