Ruth Stephenson wrote in post #1184508:
> Unfortunately, I have already tried that. When I click on the link it
> does nothing. It stays on whatever page i'm on but won't do
> anything.It's very strange
>
> Johnny Stewart wrote in post #1184507:
>> Ruth Stephenson wrote in post #1184504:
>>> ERROR:
>>> SQLite3::SQLException: no such column: appointments.appointment_date:
>>
>> This is telling you that there is no appointment_date column in your
>> appointments table.
>>
>> replace appointment_date with whatever you have named the appointment
>> date column in the appointments table. I think you mentioned it was
>> called date in another post, so:
>>
>> <%= link_to 'My
>> appointment',current_user.appointments.order(:date).last%>
>>
>> J.
This is where you need to be looking around - if it doesn't do anything
on clicking then you need to work out why that is (does the current user
have any appointments? are you attempting to
render this with javascript? does the template exist?).
The errors you are currently coming across are fundamental. I think you
need to do as others have suggested and work through a tutorial or
preferably 2 or 3, start to finish. When you have done that these errors
will be easy to solve.
--
Posted via http://www.ruby-forum.com/.
--
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/eb7d2552e6f9edbe1e8bfa87e0e0ff15%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment