[fix] hobo_model_resource generator can't find hobo_model generator
Reported by Mathijs Kwik | July 21st, 2008 @ 10:29 AM | in Hobo 0.8
It appears as if generators that depend on other generators can't find them if the hobo-plugins are symlinked in /vendor/plugins.
copying the directories to /vendor/plugins instead of symlinking them removes the problem, but isn't very nice.
The generator itself runs, but errors out:
exists app/models/
exists app/controllers/
exists app/helpers/
exists app/views/things
exists test/functional/
exists test/unit/
dependency hobo_model
Couldn't find 'hobo_model' generator
Also, when I run ./script/generate hobo_model myself, it works fine. So I guess it has to do with the dependency-handling code in rails' generators.
I get this behavior on rails v2.1.0 and on the 2-1-stable branch on ubuntu linux(x86_64) 8.04
I'm using ruby-enterprise by phusion, but I'm pretty sure that's not the issue, since their patch doesn't touch any fs/file code.
Comments and changes to this ticket
-
Mathijs Kwik July 25th, 2008 @ 11:50 AM
- Title changed from hobo_model_resource generator can't find hobo_model generator to [fix] hobo_model_resource generator can't find hobo_model generator
I finally cracked this one, took me some effort, but in the end, the solution is very simple. A bit hacky, but one that makes me smile at least :)
-
Mathijs Kwik July 29th, 2008 @ 02:21 AM
- Milestone set to Hobo 0.8
- Assigned user set to Mathijs Kwik
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.