Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul id="vote_history">
- <% if @story.votes.empty? %>
- <em>No Votes Yet!</em>
- <% else %>
- <%= render :partial => 'votes/vote',
- :collection => @story.votes.latest %>
- <% end %>
- </ul>
- <h2>
- <span id="vote_score">
- Score: <%= @story.votes.size%>
- </span>
- <%= @story.name %></h2>
- <p class="submitted_by">
- Submitted by:
- <span><%= @story.user.login %></span>
- </p>
- <p>
- <%= link_to @story.link, @story.link%>
- </p>
- <% if logged_in? %>
- <div id="vote_form">
- <% form_remote_tag :url => story_votes_path(@story) do%>
- <%= submit_tag 'shove it' %>
- <% else %>
- <p>
- <em>
- You would be able to vote for this story if you were
- <%= link_to 'logged in', new_session_path %>!
- </em>
- </p>
- <% end %>
- </div>
- -----------------------------------
- the error log:
- compile error
- C:/ruby/cllpx/app/views/stories/show.html.erb:25: syntax error, unexpected kELSE, expecting kEND
- else ; _erbout.concat "\n"
- ^
- C:/ruby/cllpx/app/views/stories/show.html.erb:34: syntax error, unexpected $end, expecting kEND
Add Comment
Please, Sign In to add comment