Error showing: "uninitialized constant MyWidget::PanelWidget"

17 views
Skip to first unread message

Mark Lindamood

unread,
Feb 18, 2014, 1:34:36 PM2/18/14
to cells-an...@googlegroups.com
As part of an insurance rating project, I've been trying to use widgets as a means of swapping out partials at any of 3 tabs. (Swapping out partials in the tabs themselves "broke" the divs for tabs)

I have been using Apotomo's twitter example as a means of name-spacing the tabs. But when I run the Rails program, Rails presents me with the error message above at "...app/views/submissions/show.html.erb." That is the location where I'd inserted the "render_widgets" command -- but it's not where the error is occurring. 

Clearly, the error has to be occurring outside of the Submissions controller. So where should I be looking for the source of this error?

Nick Sutterer

unread,
Feb 18, 2014, 4:12:44 PM2/18/14
to cells-an...@googlegroups.com
This must be in a `Controller::has_widgets` block. Apotomo does no exception catching anywhere, thou. Go through your controllers and check for a line like `widget("my_widget/panel").


--
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "Cells and Apotomo" sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine E-Mail an cells-and-apot...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out

Mark Lindamood

unread,
Feb 18, 2014, 11:24:06 PM2/18/14
to cells-an...@googlegroups.com
Thanks for the quick response. That's where I was working anyway, but it was reassuring to know that I wasn't wasting my time in the wrong part of the program. 

I finally managed to clear up the glitch -- but I might have accomplished that feat simply by re-booting  the server. Oh well, on to the next glitch...
Reply all
Reply to author
Forward
0 new messages