ruby on rails - Engine's routes not available in host's views -


i got application turned engine has tons of routes. added engine host app via gemfile , when run rake routes displayed properly. however, in views, routes aren't found resulting in error:

i access / , following error:

no route matches {:controller=>"reports" :action=>"new"}

in file /users/username/sites/engine_app/app/views/home/index.html.erb:

<%= link_to 'new report', new_report_path %> 

rake routes:

... reports#new                      new_report    /:locale/reports/new(.:format) ... 

also, can access /en/reports/new loads correct controller , view routing error.

to me, seems can access route directly app cannot resolve xxx_path inside views @ all. suggestions?

considering lack of details in question, can think trying access wrong url. /:locale/reports/new(.:format)

you open url without locale:

localhos:3000/reports/new

but should be:

localhos:3000/en/reports/new


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -