Created
April 11, 2015 09:07
-
-
Save taichiman/88dfe0e251c2ffd4eaa3 to your computer and use it in GitHub Desktop.
test rubymine gist system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if @answer.errors.any? | |
/- binding.pry | |
#error_explanation | |
h4 #{pluralize(@answer.errors.count, "error")} prohibited this answer from being saved: | |
ul | |
- @answer.errors.full_messages.each do |msg| | |
li = msg | |
= | |
= form_for [@question, @answer] do |f| | |
.form-group | |
= f.label :body, 'Body' | |
= f.text_area :body, class: 'form-control' | |
= submit_tag 'Post Your Answer' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment