On Dec 3, 2010, at 5:20 PM, throwern wrote:

> Hello all,
> 
> I'm brand new to hobo. I'm excited to test out the framework on a
> small project next week but I ran into some confusion due to the --
> invite-only option I chose.
> 
> I was getting undefined method 'form__for_model_name' with a double
> underscore while trying to extend the form tag. After some digging, I
> found that application.dryml is setup different between a normal app
> (thingybob) and my second --invite-only app. In fact application.dryml
> is empty in the --invite-only version.
> 
> The fix was to add <include src="taglibs/auto/rapid/forms"/>  into
> application.dryml. As a newbie trying to follow tutorials it was not
> obvious so I thought I'd let you know. Is the empty application.dryml
> a bug in the generator?
> 
> -Nick

Not a bug in the code - probably a bug in the docs that this isn't more clearly 
explained. When you create an invite-only site, you get an 'admin' subsite 
(note the 'admin' subdirectory under app/controllers). Subsites each get their 
own set of Rapid-generated pages, since you might not have the same controller 
/ auto_actions setup for them.

The correct include directives should be in app/views/taglibs/admin_site.dryml 
and app/views/taglibs/front_site.dryml. Obviously, it's pretty tough to extend 
a tag before it gets defined, so that's what was causing your error.

--Matt Jones


-- 
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.

Reply via email to