On 18 Dec 2008, at 16:22, Daniel Süpke wrote:
> But when I try to access the attribute "optional", I always get an
> error message!
> <% if articletemplate.articletemplates_reporttemplates.optional == 0
> %>
> leads to
> "undefined method `optional' for #<Class:0x7f83e7451880>"
>
> Why does it tell me "undefined", when one line above it tells me there
> is an attribute "optional"?
>
Assuming you're using the normal conventions,  
articletemplates_reporttemplates is an array. it doesn't have an  
optional attribute (but the elements inside it do)

Fred
> Any help is appreciated!
>
> Best Regards,
> Daniel Süpke
>
> >


--~--~---------~--~----~------------~-------~--~----~
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