Re: [Rails] Re: NoMethodError
On 1 October 2010 23:42, Pedro <pogermano@gmail.com> wrote:
> So, what I have to do? Use c =Cartcid.find(:all) instead?
Firstly, please quote what you're replying to, because your last two
posts make no sense out of context.
>On 1 October 2010 23:35, Frederick Cheung <frederick.cheung@gmail.com> wrote:
>> No. The problem is that because you've only selected the address
>> column rails can't save the object, because it doesn't know its id.
Secondly, what did you try in response to Fred pointing out you'd only
selected the address? You could use .find(:all) (or .all) or you could
"SELECT * ..." in your find_by_sql.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home