简体   繁体   中英

link_to a Devise method in Rails 3 produces nothing

In a Rails 3.0.6 application that uses Devise I created this link:

<%= 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?

Thanks!

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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