Ruby on Rails Monday, December 1, 2014

On Mon, Dec 1, 2014 at 4:40 PM, Dmoneyzzz Darko <lists@ruby-forum.com> wrote:

> Hello, I reviewed my seeds.rb, development log, and looked throughout my
> project and I have come to the conclusion that my values are not sent to
> the db.

Wrong answer. Open a console and look. You can use `dbconsole`
if you're comfortable with whatever DB you're using (and you should
be) or use the rails console to examine e.g. Appointment.last.

> I searched through my development log and it appears that the params are
> filled when the appointment is created.

Wait, then is the appointment being created? Because that implies
that the Appointment "create" action was successful. That doesn't
match with what you previously said.

Maybe you could show us (preferably via a gist) a create sequence
from your log.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAoFSkwc83_WwUCBS5C7wZ5xVDSHd18Tyn0Zzg6BjQAHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment