sinatra helpers

24 views
Skip to first unread message

icam...@gmail.com

unread,
Sep 30, 2011, 3:52:41 AM9/30/11
to erector
Is there a way of getting at Sinatra helpers from a widget?

Thanks,
Isaac

Alex Chaffee

unread,
Sep 30, 2011, 3:37:39 PM9/30/11
to icam...@gmail.com, erector
Not directly. You can pass in the results, or even pass in a pointer to the Sinatra "controller" and call methods on it later if you're feeling adventurous.

Though now that I think about it, there may be a way to tap into the code that's in there for supporting Rails helpers. I'll check on that later...

> --
> You received this message because you are subscribed to the Google Groups "erector" group.
> To post to this group, send email to ere...@googlegroups.com.
> To unsubscribe from this group, send email to erector+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/erector?hl=en.
>

Isaac Cambron

unread,
Oct 8, 2011, 5:46:31 PM10/8/11
to Alex Chaffee, erector
Thanks Alex. For now, I've just put everything in a widget base class, which seems fine for the project I'm working on.
Reply all
Reply to author
Forward
0 new messages