Hi, I have a model,
class UserComment belongs_to :user validates :player_id, :presence => true validates :comment, :uniqueness => { :scope => :player_id} partial "comments" from User. = simple_form_for @user, :html => {:class => 'comment-form'}, :remote => true do |f| %fieldset = f.fields_for :user_comments do |uac| = uac.input :comment, :as => :text, :input_html => {:rows => 5, :width => 5} .comment-action = uac.button :submit, :value => 'Comment', :class => 'btn' When I click on submit button and if the validation receives any error it does not display it on the view. I am not sure where the problem is. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/BvNWVwieRcEJ. For more options, visit https://groups.google.com/groups/opt_out.