Sha256: 9e8038377525b94cbb117841e19b5603f036fa424e24e8881ff0014c0a35de27
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
= link_to "add", new_election_path, class: "btn btn-success" - elections.each do |bf| %p %h2= bf.name = link_to "edit", edit_election_path(bf) = link_to "vote", vote_election_path(bf) = link_to "show result", show_result_election_path(bf) %div %h4 Add code to your view to display the ballot form. %p erb: %pre <%= embed_ballot_form(#{bf.id}) %> %p haml: %pre = embed_ballot_form(#{bf.id}) %h4 Add code to your view to display voting result. %p erb: %pre <%= embed_voting_result(#{bf.id}) %> %p haml: %pre = embed_voting_result(#{bf.id}) %hr
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_voter-0.2.1 | app/views/rails_voter/elections/index.html.haml |
rails_voter-0.2.0 | app/views/rails_voter/elections/index.html.haml |