> for mname in @person.middle_names
>   puts mname.name
> 
> Then it works perfectly, but for some reason using ".first" is failing 
> in
> the view. I've used this method many many times and never come across
> anything quite like this.

".first" is an array method. "mname.name" is an instance of an array...

Hope this helps...

> I believe I'm probably overlooking some incredibly simple answer and I'm
> going to kick myself when someone points it out, but for now I'm 
> completely stumped.
-- 
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 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