The action and the views were almost identical, with the supports progress and the HTML classes of the success message element being the only exceptions; we can use CSS for the styles instead.
5 lines
302 B
Plaintext
5 lines
302 B
Plaintext
$("#<%= dom_id(@proposal) %>_votes").html("<%= j render("proposals/votes", proposal: @proposal) %>");
|
|
App.Followable.update("<%= dom_id(@follow.followable) %>",
|
|
"<%= j render("follows/follow_button", follow: @follow) %>",
|
|
"<%= j render("layouts/flash") %>")
|