How to fix broken devise routing under journey 1.0.4

Deadly 提交于 2019-12-06 16:22:21

I had a similar problem with journey 1.0.4 and devise in my little Rails learning project, where loading the devise sign-up page failed with a routing error. I was able to fix the problem by changing the links that were added to the site's header by views/layouts/application.html.erb and its partials.

I changed links like this:

<%= link_to 'Home', {:controller=>'welcome', :action=>'index'} %>

to:

<%= link_to 'Home', {:controller=>'/welcome', :action=>'index'} %>

and routing started to work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!