extent changed in 1.4?

18 views
Skip to first unread message

Bob Sleys

unread,
Apr 7, 2012, 7:40:32 PM4/7/12
to hobo...@googlegroups.com
Ok color me dumb but I've done this a lot on hobo 1.3 but now with a new app using 1.4 from git when I add the following to application.dryml

<extend tag="form" for="Hour">
<old-form merge>
<field-list: fields="date, hours_worked, work_code, project, comments"/>
</old-form>
</extend>

I get the following error

NameError (undefined method `form__for_hour' for class `#<Class:0x000000046025d0>'):

I have a class named Hour and it's not the fields.  I can remove everything between the extend tags leaving a blank body and I still get the error.  I even copied the auto tag definition from rapid changing the def to extend and it still didn't work.  What dumb thing am I doing this time?

Bob

Bryan Larsen

unread,
Apr 8, 2012, 12:57:20 PM4/8/12
to hobo...@googlegroups.com
I'm certainly using extend in my 1.4 apps. It appears that what's
missing is not extend, but the origin form for="Hour". Two
possibilities: 1) it's not getting generated into your forms.dryml
or 2), your forms.dryml isn't getting included into your app. Do you
have <include src="taglibs/auto/rapid/forms"/> in your
application.dryml and/or your front_site.dryml? If it's only in
application.dryml, does your front_site.dryml include <include
src="application"/>

Bryan

> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/PqglC3VvLYwJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Bob Sleys

unread,
Apr 8, 2012, 2:57:53 PM4/8/12
to hobo...@googlegroups.com
Ok that makes sense.  Apparently this has changed a bit since 1.3.  The app is auto generated using 1.4.pre.

Here is the front_site.dryml

<!-- Global taglib - these are the tags for your front site -->

<include src="taglibs/auto/rapid/cards"/>
<include src="taglibs/auto/rapid/pages"/>
<include src="taglibs/auto/rapid/forms"/>

<%# The default Hobo theme %>
<include gem='hobo_clean'/>

And the application.dryml

<!-- Global taglib - these tags are shared across all subsites -->

<include src="rapid" gem="hobo"/>
<include gem='hobo_rapid'/>
<include gem='hobo_jquery'/>
<include gem='hobo_jquery_ui'/>

<extend tag="form" for="Hour">
<old-form merge>
<field-list: fields="date, hours_worked, work_code, project, comments"/>
</old-form>
</extend>

So the question is what is the best way to fix this.  I tried to move the taglibs to the application.dryml and include <include src="application"/> to front_site.dryl but I ended up with other errors.

Bob

Bob Sleys

unread,
Apr 8, 2012, 3:13:49 PM4/8/12
to hobo...@googlegroups.com
Ok the additional error had to do with

*= require jquery-ui/redmond

In front.css.  It was complaining it couldn't find the redmod file to include.  I deleted it for now and all is good.

Perhaps the 1.4 source files need to have the includes re-aranged? and perhaps the redmod file added or the include removed.

Bob 
Reply all
Reply to author
Forward
0 new messages