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.
2 lines
90 B
Plaintext
2 lines
90 B
Plaintext
<%= render Proposals::VotesComponent.new(proposal, vote_url: local_assigns[:vote_url]) %>
|