RE: Plugin tutorial - Pools from project menu - error aft... » index.html.erb
| 1 |
<h2>Polls Header</h2> |
|---|---|
| 2 |
|
| 3 |
<% html_title "The Polls Page" %> |
| 4 |
|
| 5 |
<% @polls.each do |poll| %> |
| 6 |
<p>
|
| 7 |
<%= poll.question %> |
| 8 |
<%= link_to 'Yes', { :action => 'vote', :id => poll[:id], :answer => 'yes', :project_id => params[:project_id] }, :method => :post, :class => 'vote yes' %> (<%= poll.yes %>) |
| 9 |
<%= link_to 'No', { :action => 'vote', :id => poll[:id], :answer => 'no', :project_id => params[:project_id] }, :method => :post, :class => 'vote no' %> (<%= poll.no %>) |
| 10 |
</p>
|
| 11 |
<% end %> |
| 12 |
|
| 13 |
<% content_for :header_tags do %> |
| 14 |
<%= stylesheet_link_tag 'voting', :plugin => 'tutorial_polls' %> |
| 15 |
<% end %> |