Might @user.comment work?

- Nathan

Yitzhak Bar Geva wrote:
> It's working better.
> This line is the culprit:
>        %td=h(truncate(user.comment,40,truncate_string="..."))
> What should I do?
>
>  NameError in Users#index
>
> Showing app/views/users/index.haml where line #16 raised:
>
> undefined local variable or method `user' for 
> #<#<Class:0xb7c7b6d8>:0xb7c7b688>
>
> Extracted source (around line #16):
>
> 13:       %td= in_place_editor_field :user, :l_name
> 14:       %td= in_place_editor_field :user, :f_name
> 15:       %td= in_place_editor_field :user, :phone
> 16:       %td=h(truncate(user.comment,40,truncate_string="..."))
> 17: 
>   

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

Reply via email to