Ruby on Rails Monday, December 1, 2014

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

> Currently, my issue is that I cannot see the values I have selected in
> my Appointment form.

> I have this in the appointments/show.html.erb:

> <%= @appointment.appointment_time %>

So what do you see there? Use `view source`.

The likely cause of missing values is either

1) the values were never inserted into the DB to start with
or
2) you're not setting @appointment in your controller

Either of those should be easy to identify. Start by looking at your
DB. If the data isn't there, look at your logs; are the params being
received what you expect? Does your model have validations that
might be failing?

--
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/CACmC4yDkiefTNpyMv13ZiCUaHz7wcQOhOtGmdgqkTpM5-iLBDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment