PollsController

<% @polls.each do |poll| %>

<%= poll.question %>? <%= link_to 'Yes', { :action => 'vote', :id => poll[:id], :answer => 'yes', :project_id => *project identifier here* }, :method => :post %> (<%= poll.yes %>) / <%= link_to 'No', { :action => 'vote', :id => poll[:id], :answer => 'no', :project_id => *project identifier here* }, :method => :post %> (<%= poll.no %>)

<% end %>