Thought I was pushing my luck ;)

I've been a numpty and forgotten to copy the iteration from my other
app. It's getting late...

On Nov 7, 10:43 pm, Emmanuel Gomez <[email protected]> wrote:
> On Nov 7, 2011, at 2:34 PM, [email protected] wrote:
>
> > That's cool, thanks. I've got the server running with no errors now
> > but am struggling implementing the checkboxes in my usual manner.
>
> > Have just tried this:
>
> > <%= check_box_tag "radcheck[usernames][]", group.name,
> > @radcheck.groups.include?(group) %>
>
> You've just crossed the threshold from a DataMapper question to a Rails 
> question :).
>
> > But that gives me an error:
>
> > undefined local variable or method `group' for #<#<Class:
> > 0x000001016fb650>:0x000001016f3d10>
>
> I'm guessing that maybe you intend to output one checkbox for each group in a 
> list of groups… ? The code you supplied omits that iteration, but if that 
> assumption is correct then something has gone wrong with the iteration (eg., 
> `@valid_groups.each do |group|;…; end`).
>
> With more context I might be of more assistance.
>
> Hope that helps,
> Emmanuel

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to