Fixed saving user for new orders.
This commit is contained in:
parent
44ef0a9807
commit
8b2b70f8bf
3 changed files with 3 additions and 4 deletions
|
|
@ -142,7 +142,8 @@ module ApplicationHelper
|
|||
# offers a link for writing message to user
|
||||
# checks for nil (useful for relations)
|
||||
def link_to_user_message_if_valid(user)
|
||||
user.nil? ? '??' : ( link_to user.nick, user_message_path(user), :title => 'Nachricht schreiben' )
|
||||
user.nil? ? '??' : link_to(user.nick, new_message_path('message[mail_to]' => user.id),
|
||||
:title => 'Nachricht schreiben')
|
||||
end
|
||||
|
||||
def bootstrap_flash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue