[Rails] Use reflection to show the list
Hi,
I have two list
1) Groups that user part of
2) Group members list.
I trying to do this by using the reflection so that I will be having
only one view in which depending on the action the object passed will be
different.
Is there any way to find the all attributes of the object so that I will
iterate on attributes array and list out the attribute values during
rendering?
Any help appreciated.
Thanks,
Tushar
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home