Hi Justin,
works fine!!
Thanks a lot!
Regs
Herman
Justin Mcginnis wrote in post #1029688:
> Hi, in the MessageHelper module, you could change the nested_messages
> method to look like this;
>
> def nested_messages(messages)
> messages.map do |message, sub_messages|
> render(:partial => "old_message", :locals => {:message =>
> message}) + content_tag(:div, nested_messages(sub_messages), :class =>
> "nested_messages")
> end.join.html_safe
> end
>
> Just change the partial option to what ever file you want to render.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment