SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class DaysEvent < ActiveRecord::Base
  2. belongs_to :event
  3. belongs_to :location
  4.  
  5. accepts_nested_attributes_for :event
  6.    
  7. <%= form_for(DaysEvent.new, :remote => true, :html => { :class => "form-inline"} ) do       |f| %>
  8.  
  9.  
  10. <fieldset>
  11. <%= f.fields_for :event do |event_form| %>  
  12.  <div class="control-group">
  13.   <%= event_form.label :allow_user_to_suggest_dates, :class => 'control-label' %>
  14.   <div class="controls">
  15.     <%= event_form.check_box :allow_user_to_suggest_dates, :class => 'text_field' %>
  16.   </div>
  17. </div>
  18. </fieldset>
  19. <% end %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top