Hi Matt,
Thanks for fast reply !
I've just created the ticket in lighthouse (hoping it has been set in the
right place).
And, as you say, I can go further, but now, I have an issue with the routing
:
C:/Ruby/ruby-1.9.1-p378/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:142:in
`module_eval': (eval):1: syntax error, unexpected '/', expecting ';' or '\n'
(SyntaxError)
..._parametertable_parametertable/parametertables_url(options =...
... ^
(eval):3: syntax error, unexpected keyword_end, expecting $end
end ...
^
from
C:/Ruby/ruby-1.9.1-p378/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:142:in
`named_helper_module_eval'
from
C:/Ruby/ruby-1.9.1-p378/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:152:in
`define_hash_access'
I keep investigating on this issue.
2010/8/11 Matt Jones <[email protected]>
> 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]<hobousers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>
>
--
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.