search for: check_in

Displaying 3 results from an estimated 3 matches for "check_in".

Did you mean: check_inv
2012 Nov 12
7
RSpec: controller POST create
...understand that my way is rather opposite: building test methods after setting actual codes. But first I need to understand RSpec. I have also setup FactoryGirl FactoryGirl.define do factory :plan do sequence(:give_take) { |n| [ 0, 1 ][n%2] } sequence(:weight) { | n | n } sequence(:check_in) { |c| [ true, false ][c%2] } sequence(:flight_name_id) { |n| n } day_departure Date.new(2012, 12, 1) end end which does work. Question: Can you show me how to pass the object to create method WITH valid attributes? Thanks in advance soichi -- Posted via http://www.ruby-forum.com/....
2012 Sep 22
1
formtastic does not save at all
...#39;flight_name'' %> </div> <%= f.input :day_departure, :as => :date_select, :hint => ''Select a date'', :start_year => Time.now.year, :label => "Departure date" %> <%= f.input :weight %> <%= f.input :check_in %> <% end %> <%= f.actions do %> <%= f.action :submit, :button_html => { :class => "btn btn-large btn-primary" } %> <% end %> <% end %> The partials and jQuery ajax functions work properly. But the problem is the clicking the submit butt...
2006 Mar 13
0
Time Column
...ing band performances. So, I''ve got a model for "Show" and it''s got a date associated with it. But I''ve got other fields that I''d like to set times for, but not worry about the date. like this: show_date (date) doors_open (time) show_starts (time) check_in (time) load_in (time) etc.... how would I go about doing that? Thanks! -- Posted via http://www.ruby-forum.com/.