On Wed, Aug 11, 2010 at 11:25 AM, Arnaud D. <[email protected]> wrote:
> Hi all,
>
> I want to have models in subfolders and then try to create this :
> Folder parametertable, main resource : parametertable (model, controller).
>>ruby script\generate hobo_model_resource parametertable::parametertable
>> name:text
>       exists  app/models/parametertable
>       exists  app/controllers/parametertable
>       exists  app/helpers/parametertable
>       exists  app/views/parametertable/parametertables
>       exists  test/functional/parametertable
>       exists  test/unit/parametertable
>   dependency  hobo_model
>       exists    app/models/parametertable
>       exists    test/unit/parametertable
>       exists    test/fixtures/parametertable
>       exists    app/viewhints
>       create    app/models/parametertable/parametertable.rb
>       create    app/viewhints/parametertable/parametertable_hints.rb
> No such file or directory -
> C:/Co.Care/Copernic/app/viewhints/parametertable/parametertable_hints.rb
>
> And it appears the app/viewhints/parametertable folder is not created. I did
> it manually.

This is probably a bug. Can you post a ticket for it on the Hobo
Lighthouse? (http://hobo.lighthouseapp.com/)


> Is there any way to tell the controller to take
> Parametertable::Parametertable as model name ?

Yes - add the correct model name to the hobo_model_controller line, as
mentioned in the docs
(http://cookbook.hobocentral.net/manual/controllers).

So it would become (in your case):

hobo_model_controller Parametertable::Parametertable

Note that you may encounter further problems, as even vanilla Rails
has some sharp edges regarding models in namespaces and I'm *certain*
we've got a few in Hobo.

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