209894767_a30a982917_m_small roupen nahab... 2 posts

I’ve been all over the book – Agile Web Dev—I’m implementing the Depot project and also building a parallel fun project to apply what I’m learning in real time.

I have two models: book and wanted_offer book has_many wanted_offers and wanted_offer belongs_to book.

I have a myfoo controller which handles these models.

What I am trying to do is use the “create_” method describe on p 328 to create a book based on user input.

My call looks like this @wanted_offer.create_book(params[:wanted_offer])

From all indications, everything is going well (no runtime errors, logs look normal) BUT book is not being written to the database :-(

What am I missing?

1 post, 1 voice