[Rails] Facility scheduling app for an airline

2014-12-07 Thread Olivier R
I need to create a simple application to manage the scheduling of aircrafts and its crew. Is anyone aware of a similar project (hotel, tennis court or others) which could serve as a launch pad? Thank you, Olivier RoR developer and Airline Pilot -- You received this message because you are subsc

[Rails] Re: NoMethodError: undefined method `password_digest=

2014-12-07 Thread Kevin Roe
I am also learning nowHave you tried "has_secure_password" in the User model. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsub

[Rails] Why does this test fail.

2014-12-07 Thread Roelof Wobben
Hello, Sorry for the double post but on reddit nobody seems to have the solution. im following the agile web developement book but then with my own layout. Now am at chapter 9 where a shopping card is added. But as soon as I try to test the card I see this error LineItemsControllerTest#tes

Re: [Rails] Finding records either side of a reference

2014-12-07 Thread Colin Law
On 6 December 2014 at 17:20, Dave Aronson wrote: > On Sat, Dec 6, 2014 at 9:46 AM, Colin Law wrote: > >> I want to find the last segment with a start_time <= >> time and the first one with start_time > time, so >> Segment.order(:start_time).where( "start_time <= ?", time).last >> and >> Segment.o