Add authorization for toggle_favorite and rename route
This commit is contained in:
parent
2485923319
commit
91629d9b92
5 changed files with 11 additions and 5 deletions
|
|
@ -11,7 +11,7 @@
|
|||
= link_to('#', onClick: 'starClicked();') do
|
||||
%span#star-events{ class: "fa fa-lg #{ event.favourite_users.exists?(current_user.id) ? 'fa-star' : 'fa-star-o' }", |
|
||||
"aria-hidden" => "true", |
|
||||
"data-url" => toogle_favorite_conference_program_proposal_path(@conference.short_title, event.id), |
|
||||
"data-url" => toggle_favorite_conference_program_proposal_path(@conference.short_title, event.id), |
|
||||
"data-user" => current_user.id }
|
||||
%span.h3
|
||||
= event.title
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue