Skip to content

Instantly share code, notes, and snippets.

@LucasPadovan
Created January 28, 2013 01:59
Show Gist options
  • Save LucasPadovan/4652260 to your computer and use it in GitHub Desktop.
Save LucasPadovan/4652260 to your computer and use it in GitHub Desktop.
Acts_as_votable error.
Jan 27 17:44:51 cursoscetem app/web.1: Completed 500 Internal Server Error in 226ms
Jan 27 17:45:17 cursoscetem app/web.1: Started GET "/boards/4/conversations/80" for 190.179.138.202 at 2013-01-28 01:45:17 +0000
Jan 27 17:45:17 cursoscetem app/web.1: ActionView::Template::Error (undefined method `voted_for?' for #<User:0x00000002c48590>):
Jan 27 17:45:17 cursoscetem app/web.1: 16: = sanitizar_bbcode(comment.body)
Jan 27 17:45:17 cursoscetem app/web.1: 17: %hr
Jan 27 17:45:17 cursoscetem app/web.1: 18: .well.well-dark.pull-right
Jan 27 17:45:17 cursoscetem app/web.1: 19: - unless @current_user.voted_for?(comment)
Jan 27 17:45:17 cursoscetem app/web.1: 20: = link_to '+', votar_encuesta_path(comentario_id: comment), remote: true, class: 'badge badge-success'
Jan 27 17:45:17 cursoscetem app/web.1: 21:
Jan 27 17:45:17 cursoscetem app/web.1: 22: = link_to '-', votar_encuesta_path(comentario_id: comment, negativo: true), remote: true, class: 'badge badge-warning'
Jan 27 17:45:17 cursoscetem app/web.1: app/views/comments/_show_comment.haml:19:in `_app_views_comments__show_comment_haml__3816892770566011391_45327420'
Jan 27 17:45:17 cursoscetem app/web.1: app/views/conversations/show.html.haml:17:in `_app_views_conversations_show_html_haml__2607547154883963784_45679000'
Jan 27 17:45:17 cursoscetem app/web.1: app/controllers/conversations_controller.rb:23:in `show'
Jan 27 17:45:17 cursoscetem app/web.1: Processing by ConversationsController#show as HTML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment