Displaying 1 result from an estimated 1 matches for "member_vot".
Did you mean:
member_vote
2006 Feb 19
0
looking for more idiomatic way of doing this
I have proposals and members can vote for them. In my proposal view I have a little div
where the currently logged in member can vote:
<div id="vote_div" class="vote">
Your vote:
<% if @member_vote %>
You have voted for this proposal<br />
<%= start_form_tag :action => "delete_vote" %>
<%= hidden_field_tag :id, @proposal.id%>
<%= submit_tag "Remove Vote", ''class'' => "button" %>
<%= en...