I’m sure I’m doing something stupid but I can’t see it. �Any help
would be appreciated.
I should mention rsvp only has two columns:
guest_id
coming
So is the name of the table ‘rsvp’ or ‘Guest’? It looks like you are
looking at the ‘Guest’ table for a column named ‘coming’ according to
your find statement.
So is the name of the table ‘rsvp’ or ‘Guest’? It looks like you are
looking at the ‘Guest’ table for a column named ‘coming’ according to
your find statement.
Posted viahttp://www.ruby-forum.com/.
Well there are two separate tables guest and rsvp that are
associated. I want the guests who have rsvp entries of true. So I
wanted to include the rsvp table and look at the coming column there.
I’ve done similar before with a course table and a department table
where I did a find on the name of the dept. Did I just get really
lucky there and find an odd bug?
I’ve done similar before with a course table and a department table
where I did a find on the name of the dept. Did I just get really
lucky there and find an odd bug?
Well you’ve got your answer, but just to get things straight you used
to (before rails 2.1) be able to get away with not fully qualifying
the column name which is probably why you remember this working.
Fred
Thanks Fred,
That does explain things, my own laziness in the past did me in.
Well there are two separate tables guest and rsvp that are
associated. I want the guests who have rsvp entries of true. So I
wanted to include the rsvp table and look at the coming column there.
I’ve done similar before with a course table and a department table
where I did a find on the name of the dept. Did I just get really
lucky there and find an odd bug?
Well you’ve got your answer, but just to get things straight you used
to (before rails 2.1) be able to get away with not fully qualifying
the column name which is probably why you remember this working.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.