Sha256: e93038fcb010a527194ad931d7281f8ed9455de96c10203b6e0e16741ca5f0cd
Contents?: true
Size: 803 Bytes
Versions: 8
Compression:
Stored size: 803 Bytes
Contents
<%= test_fixture do %> <% @user = User.new %> <% @profile = Profile.new %> <% Audience.find_or_create_by_name("Educator") %> <script type="text/template" id="new-school-form-tpl"> <%= render :partial => 'schools/form' %> </script> <%= render :partial => 'shared/form_errors', :locals => { :object => @user } %> <%= semantic_form_for(@profile, :url => "#", :method => :get, :html => {:novalidate => nil, :autocomplete => "off"}) do |form| %> <%= render :partial => "schools/profile_form", :locals => {:form => form} %> <%= form.input :audience, :as => :select, :collection => Audience.all, :label => 'Profession', :required => true, :input_html => { :required => 'required', 'data-message' => Profile.error_message(:audience) } %> <%= form.submit %> <% end %> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems