简体   繁体   English

在Rails 3中link_to一个Devise方法不会产生任何结果

[英]link_to a Devise method in Rails 3 produces nothing

In a Rails 3.0.6 application that uses Devise I created this link: 在使用Devise的Rails 3.0.6应用程序中,我创建了以下链接:

<%= link_to "client login", new_user_session_path %>

I have the following in my header: 标头中包含以下内容:

<%= csrf_meta_tag %>

The link doesn't work. 链接无效。 Is the problem with javascript or the devise path? JavaScript或设计路径有问题吗?

Thanks! 谢谢!

您缺少“ =” :)更改为:

<%= link_to "client login", new_user_session_path %>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM