Barney <bsperlin@...> writes:

> 
> <p>
>   <b>Skill</b>
>   <%= @people_skill.build.skill %>
>   <%= PeopleSkill.where("people_id = @person.id")%>
>  </p>
> 
> which produced the strange #<ActiveRecord... output above.  Other
> guesses have either given me errors or no output at all, so please
> tell me the right way to do this.
>              Barney
> 


PeopleSkill.where("people_id = @person.id") will return an ActiveRecord 
relation object, rather that execute the query againstg the database.  Try:
PeopleSkill.where("people_id = @person.id").find

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to