Use login_path instead of explicit controller and actions
This makes future refactoring easier.
This commit is contained in:
parent
2233edbcfa
commit
38ad8fbc36
13 changed files with 56 additions and 56 deletions
|
@ -64,7 +64,7 @@
|
|||
|
||||
<% unless current_user %>
|
||||
<div class="notice">
|
||||
<%= link_to(t(".join_discussion"), :controller => "users", :action => "login", :referer => request.fullpath) %>
|
||||
<%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue