Created
June 21, 2011 06:21
-
-
Save dankozlowski/1037335 to your computer and use it in GitHub Desktop.
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
= form_for @user_comment do |f| | |
-if @user_comment.errors.any? | |
#error_explanation | |
%h2= "#{pluralize(@user_comment.errors.count, "error")} prohibited this user_comment from being saved:" | |
%ul | |
- @user_comment.errors.full_messages.each do |msg| | |
%li= msg | |
.field | |
= f.hidden_field :admin_id, :value => current_admin.id | |
= f.hidden_field :user_id, :value => @user.id | |
.field | |
= f.label "New Comment:" | |
%br | |
= f.text_area :content, :class => "width-14" | |
.actions | |
= f.submit 'Save Comment' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment