Methinks you meant:
12: - for @user in @users
13: %td= in_place_editor_field :user, :l_name
But beware. This will give you a list of all @users horizontally
across the screen. A more common pattern is:
- for @user in @users
%tr
%td= in_place_editor_field :user, :l_name
%td= in_place_editor_field :user, :f_name
And so on.
Steve
On Feb 5, 2007, at 5:02 PM, Yitzhak Bar Geva wrote:
>
> No luck.
> Here's what I'm getting:
>
> NameError in Users#index
>
> Showing app/views/users/index.haml where line #12 raised:
>
> undefined local variable or method `users' for #<#<Class:
> 0xb756c630>:0xb756c608>
>
> Extracted source (around line #12):
>
> 9: %th Contacts sum
> 10: %th Comments
> 11: %tr
> 12: - for user in users
> 13: - @user = user
> 14: %td= in_place_editor_field :user, :l_name
> 15:
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---