[BioRuby] BioRuby Shell Rails Generator Bug ?

Toshiaki Katayama ktym at hgc.jp
Sat Feb 2 03:31:39 UTC 2008


Hi Raoul,

I confirmed that your change

  % cd lib/bio/shell/rails/vendor/plugins/
  % mkdir bioruby
  % mv generators bioruby

works fine with Rails 1.2 and Rails 2 so I did a CVS magic
to mv the directory directly in the open-bio.org CVS repository.

> [febo at Graco BiosqlApp]$ script/console 
> Loading development environment (Rails 2.0.2)
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in `load_missing_constant':NameError: uninitialized constant Bio::Shell

This only happens in Rails 2.x and I don't know what is the best way to fix this for now.

Regards,
Toshiaki

On 2008/02/01, at 17:41, Raoul Jean Pierre Bonnal wrote:

>
> Il giorno ven, 01/02/2008 alle 09.15 +0900, Toshiaki Katayama ha
> scritto:
>> Hmm, it is working in my environment without any changes.
>> What version of rails are you using?
> [febo at Graco BiosqlApp]$ ruby --version
> ruby 1.8.6 (2007-03-13 patchlevel 0) [i586-linux-gnu]
>
> [febo at Graco BiosqlApp]$ gem -v
> 1.0.1
>
> [febo at Graco ~]$ rails --version
> Rails 2.0.2
>
> http://api.rubyonrails.org/classes/Rails/Generator.html 
> "For a Rails plugin, make a generators directory at the root of your
> plugin."
>
>> By the way, rails mode (bioruby -r) is not yet tested
>> with Rails 2.x and may not work.
> Seems to work fixing that, only a little problem whit Bio::Shell in
> script/console
> [febo at Graco BiosqlApp]$ script/console 
> Loading development environment (Rails 2.0.2)
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in `load_missing_constant':NameError: uninitialized constant Bio::Shell
>
> Ciao.
>
> --
> Ra
>





More information about the BioRuby mailing list