> > In this example (applied to a new Hobo 1.4 alpha app) adding the extend tags > > to application.dryml causes > > > undefined method `form__for_author' for class `#<Class:0x565eff0>' >
If anybody else encounters this problem, it is because a default generated app for Hobo 1.4 creates a front_site.dryml that loads after application.dryml. The front_site.dryml is the one that loads the auto-generated forms, so put your extend statement at the bottom of front_site.dryml and will be visible to all the views in the front site. This problem can occur in earlier versions of Hobo, but front_site.dryml is not generated in a blank app, so newcomers are unlikely to run into it. If you want your extension visible to both front and admin sites, create a new file (common.dryml, perhaps), put the form extend in there and then <include src="common"/> in both front_site.dryml and admin_site.dryml. This is the style I generally use for all larger Hobo apps because otherwise front_site.dryml can get very large and unwieldy. I've added a warning to the generated application.dryml: https://github.com/tablatom/hobo/commit/3a1d4cf1d9eb1a45f90eb3618a5d22d1a471a3f6 Bryan -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
