Finding out all the widgets?

13 views
Skip to first unread message

Pedro Nascimento

unread,
Jan 10, 2012, 12:20:06 PM1/10/12
to Cells and Apotomo
Is there anyway to dynamically find all the widgets, and append them on a controller? I'm fine using render_widget in either action or view, but would like a controller to handle all widgets available.

Pedro Nascimento

unread,
Jan 10, 2012, 1:41:29 PM1/10/12
to Cells and Apotomo
My current solution is: apotomo_root.children.map(&:name) on the given controller.
Let me know if there is a better approach. :)

Nick Sutterer

unread,
Jan 10, 2012, 2:07:08 PM1/10/12
to cells-an...@googlegroups.com
On Tue, Jan 10, 2012 at 6:20 PM, Pedro Nascimento <pnasc...@gmail.com> wrote:
> Is there anyway to dynamically find all the widgets, and append them on a
> controller? I'm fine using render_widget in either action or view, but would
>
"all widget", does that mean all widgets in app/widgets ? If yes,
you'd have to grep this directory by hand.

Nick

Reply all
Reply to author
Forward
0 new messages