Installing HoboFields Pre-Release for Rails 3

14 vues
Accéder directement au premier message non lu

Steve

non lue,
19 janv. 2011, 00:19:2419/01/2011
à Hobo Users
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

Domizio Demichelis

non lue,
19 janv. 2011, 06:44:2119/01/2011
à hobo...@googlegroups.com
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


--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.


Steve

non lue,
19 janv. 2011, 22:10:1019/01/2011
à Hobo Users
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 <dd.ne...@gmail.com> 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 <Steve.Harri...@internode.on.net>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 hobo...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > hobousers+...@googlegroups.com<hobousers%2Bunsubscribe@googlegroups .com>
> > .

Domizio Demichelis

non lue,
19 janv. 2011, 22:19:2419/01/2011
à hobo...@googlegroups.com
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

To unsubscribe from this group, send email to hobousers+...@googlegroups.com.

Steve

non lue,
21 janv. 2011, 00:21:1621/01/2011
à Hobo Users
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 <dd.ne...@gmail.com> 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
>

Domizio Demichelis

non lue,
21 janv. 2011, 07:22:0721/01/2011
à hobo...@googlegroups.com
you can probably use the gem declaration in the Gemfile so it will use the git repo or a local installedd copy.

ciao
dd

To unsubscribe from this group, send email to hobousers+...@googlegroups.com.

Steve

non lue,
22 janv. 2011, 00:28:2522/01/2011
à Hobo Users
Dear Domizio,

OK, thanks for your help!

Steve

On Jan 21, 11:22 pm, Domizio Demichelis <dd.ne...@gmail.com> wrote:
> you can probably use the gem declaration in the Gemfile so it will use the
> git repo or a local installedd copy.
>
> ciao
> dd
>
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message