Sha256: 3087afc6bc1deb5ecdcffa2db7ab7093ac60e1ff09ed3d21e262f9d3a0115567
Contents?: true
Size: 839 Bytes
Versions: 17
Compression:
Stored size: 839 Bytes
Contents
= content_for :head do = javascript_include_tag 'jquery-validate/jquery.validate.pack' :javascript $(function(){ $('form').validate(); }); = form_for @feedback do |f| -if @feedback.errors.any? #errorExplanation %h2= "#{pluralize(@feedback.errors.count, "error")} prohibited this feedback from being saved:" %ul - @feedback.errors.full_messages.each do |msg| %li= msg .field = f.label :name = f.text_field :name .field = f.label :phone = f.text_field :phone .field = f.label :email = f.text_field :email .field = f.label :subject = f.text_field :subject .field = label_tag "Want a response?" = f.check_box(:want_response) .field .text_area = f.label :message = f.text_area :message .actions = f.submit 'Send feedback'
Version data entries
17 entries across 17 versions & 1 rubygems