you can probably use the gem declaration in the Gemfile so it will use the
git repo or a local installedd copy.

ciao
dd

On Fri, Jan 21, 2011 at 1:21 AM, Steve <[email protected]>wrote:

> Dear Domizio,
>
> OK, thanks! By changing the source code of the installed gem as per
> your information, it is now working perfectly!
>
> However—it's probably a noob question—how do I use the latest "rails 3
> edge" version that you've pushed? Do I have to check it out of Github,
> build it, and then manually install it, or is there some other way to
> do it...?
>
> Thanks,
> Steve
>
> On Jan 20, 2:19 pm, Domizio Demichelis <[email protected]> wrote:
> > There is probably a missing require in the model generator.
> > require 'generators/hobo_support/eval_template' which is invoked if you
> use
> > hobo, but it is not when you use just hobo_fields.
> >
> > I have just pushed it, so you should use rails3 edge if you want to try
> it.
> >
> > ciao
> > dd
> >
> > On Wed, Jan 19, 2011 at 11:10 PM, Steve <[email protected]
> >wrote:
> >
> >
> >
> > > Dear Domizio,
> >
> > > Thanks! Now, when I execute "rails generate", the HoboFields
> > > generators are listed. However, when I try to create a model (e.g.
> > > "rails generate hobo:model book name:string description:text"), I get
> > > the following error:
> >
> > > /Library/Ruby/Gems/1.8/gems/hobo_support-1.3.0.pre25/lib/generators/
> > > hobo_support/model.rb:4: uninitialized constant
> > > Generators::HoboSupport::EvalTemplate (NameError)
> > >        from /Library/Ruby/Gems/1.8/gems/hobo_support-1.3.0.pre25/lib/
> > > hobo_support/module.rb:89:in `class_eval'
> > >        from /Library/Ruby/Gems/1.8/gems/hobo_support-1.3.0.pre25/lib/
> > > hobo_support/module.rb:89:in `included'
> > >        from /Library/Ruby/Gems/1.8/gems/hobo_fields-1.3.0.pre25/lib/
> > > generators/hobo/model/model_generator.rb:8:in `include'
> > >        from /Library/Ruby/Gems/1.8/gems/hobo_fields-1.3.0.pre25/lib/
> > > generators/hobo/model/model_generator.rb:8
> > >        from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/
> > > generators.rb:286:in `lookup'
> > >        from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/
> > > generators.rb:282:in `each'
> > >        from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/
> > > generators.rb:282:in `lookup'
> > >        from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/
> > > generators.rb:281:in `each'
> > >        from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/
> > > generators.rb:281:in `lookup'
> > >        from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/
> > > generators.rb:141:in `find_by_namespace'
> > >        from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/
> > > generators.rb:161:in `invoke'
> > >        from
> /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/commands/
> > > generate.rb:10
> > >        from
> > > /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/commands.rb:
> > > 17
> > >        from script/rails:6:in `require'
> > >        from script/rails:6
> >
> > > I've added "gem 'hobo_fields', '1.3.0.pre25'" to the project's
> > > Gemfile.
> >
> > > Any ideas what might be causing this error?
> >
> > > Thanks,
> > > Steve
> >
> > > On Jan 19, 10:44 pm, Domizio Demichelis <[email protected]> wrote:
> > > > Hi Steve,
> > > > try this:
> >
> > > > gem list hobo_fields --pre -r
> >
> > > > You can install the pre25, that - for hobo_fields - should be exctly
> the
> > > > same in rails3 branch.
> >
> > > > gem install hobo_fields --pre
> >
> > > > ciao
> > > > dd
> >
> > > > On Wed, Jan 19, 2011 at 1:19 AM, Steve <
> [email protected]
> > > >wrote:
> >
> > > > > Hello,
> >
> > > > > I'm trying to install the latest pre-release version of HoboFields,
> > > > > which supports Rails 3 (RubyGems doesn't have the latest code).
> I've
> > > > > followed the steps on the relevant Hobo blog post (http://
> > > > > hobocentral.net/blog/2010/08/24/hobofields-and-rails-3/), but when
> I
> > > > > execute "rake install", I get the following error:
> >
> > > > > rake aborted!
> > > > > Don't know how to build task 'install'
> >
> > > > > Can anyone help me with this? How can I successfully install the
> > > > > latest pre-release version of HoboFields so that it will work with
> > > > > Rails 3?
> >
> > > > > Note: I'm trying to use HoboFields, not Hobo. The latter I've
> > > > > installed successfully, but I'd like to use just HoboFields.
> >
> > > > > Thanks,
> > > > > Steve
> >
> > > > > --
> > > > > 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]>
> <hobousers%2Bunsubscribe@googlegroups .com>
> > > <hobousers%2Bunsubscribe@googlegroups .com>
> > > > > .
> > > > > 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]<hobousers%[email protected]>
> <hobousers%2Bunsubscribe@googlegroups .com>
> > > .
> > > 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]<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.

Reply via email to