I made some progress after modify the development.rb file and
installing the mysql.dll.
Now I run script\generate hobo_migration
'in application.rb
wrong number of arguments (1 for 2)'

If I rename application.rb (so it can't find it) and run the migration
I just get the 'wrong number of arguments(1 of 2)' error.
I've searched the forum but, haven't found any solutions.
Any clues?
Thanks.

On Apr 10, 2:05 pm, MartOn <[email protected]> wrote:
> As a comment I just want to share with you my workaround for making
> hobo apps on rails 2.2.2 when I have rails 2.3 installed:
> Putting hobo into your plugin directory also makes you in control of
> upgrading hobo. Remember that hobo will then run from your plugins
> directory and not as the installed gem.
>
> (NOTE! You need rails 2.2.2 also installed with your gem command)
>
> (PS! On Windows you must put ruby infront of the script commands)
> ...
> rails _2.2.2_ my_app
> cd my_app
> script/plugin install git://github.com/tablatom/hobo.git
> script/generate hobo --add-routes
> script/generate hobo_rapid --import-tags
> script/generate hobo_user_model user
> script/generate hobo_user_controller user
> script/generate hobo_front_controller front --delete-index --add-
> routes
> ...
> Alternative to adding hobo as plugin is to install it as a git sub-
> module. I use Heroku, so I cannot use sub modules:
> git submodule add git://github.com/tablatom/hobo.git vendor/plugins/
> hobo
>
> At least this works for me and I do not get any issues with rails 2.3-
>
> >2.2.2 downgrading.
>
> I have suggested taking rails version as parameter on the hobo
> command:http://groups.google.com/group/hobousers/browse_thread/thread/e2e8294...
>
> Hope this may help some frustrated hobo-developers
>
> /MartOn
>
> On Apr 9, 9:59 am, tmorgan99 <[email protected]> wrote:
>
> > you will find these settings in the environment files within the
> > config folder
> > They may be remnants from your earlier attempts.
>
> > they should be removed.
> > You might try
> >    rake rails:update:configs
> > to reset configs to something usable.
>
> > On Apr 7, 6:06 pm, danman <[email protected]> wrote:
>
> > > I uninstalled the hobo_fields gem, reinstalled it, and changed my
> > > environment.rb to use rails 2.2.2.
> > > Next ran the rake rails:update.
> > > Finally running generate hobo_migration returns:
> > > C:\iefeqa\genarch2>ruby script\generate hobo_migration
>
> > > *******************************************************************
> > >       * config.breakpoint_server has been deprecated and has no
> > > effect. *
>
> > > *******************************************************************
>
> > > c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in
> > > `send': und
> > > efined method `cache_template_extensions=' for ActionView::Base:Class
> > > (NoMethodE
> > > rror)
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:530:i
> > > n `initialize_framework_settings'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:529:i
> > > n `each'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:529:i
> > > n `initialize_framework_settings'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:526:i
> > > n `each'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:526:i
> > > n `initialize_framework_settings'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:154:i
> > > n `process'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:112:i
> > > n `send'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > initializer.rb:112:i
> > > n `run'
> > >         from C:/iefeqa/genarch2/config/environment.rb:14
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `ge
> > > m_original_require'
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `re
> > > quire'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
> > > generate.rb
> > > :1
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `ge
> > > m_original_require'
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `re
> > > quire'
> > >         from script/generate:3
>
> > > Any suggestions?
>
> > > On Apr 6, 9:37 am, danman <[email protected]> wrote:
>
> > > > The gem version shows '1.3.1'.  Do you think that needs to be updated?
> > > > gem out returns:
> > > > C:\iefeqa\genarch2>gem out
> > > > actionmailer (2.2.2 < 2.3.2)
> > > > actionpack (2.2.2 < 2.3.2)
> > > > actionwebservice (1.2.3 < 1.2.6)
> > > > activerecord (2.2.2 < 2.3.2)
> > > > activeresource (2.2.2 < 2.3.2)
> > > > activesupport (2.2.2 < 2.3.2)
> > > > fxri (0.3.6 < 0.3.7)
> > > > fxruby (1.6.6 < 1.6.19)
> > > > gruff (0.3.1 < 0.3.4)
> > > > hoe (1.5.3 < 1.12.1)
> > > > hpricot (0.4 < 0.8.1)
> > > > rails (2.2.2 < 2.3.2)
> > > > rgl (0.2.3 < 0.4.0)
> > > > rmagick (1.15.9 < 2.9.1)
> > > > ruby-graphviz (0.8.0 < 0.9.0)
> > > > rubyforge (1.0.0 < 1.0.3)
> > > > win32-clipboard (0.4.1 < 0.4.4)
> > > > win32-dir (0.3.1 < 0.3.3)
> > > > win32-eventlog (0.4.3 < 0.5.0)
> > > > win32-file (0.5.3 < 0.6.1)
> > > > win32-file-stat (1.2.3 < 1.3.3)
> > > > win32-process (0.5.1 < 0.6.0)
> > > > win32-sapi (0.1.3 < 0.1.4)
> > > > win32-sound (0.4.0 < 0.4.1)
> > > > windows-pr (0.6.2 < 1.0.2)
>
> > > > thanks for the help.
>
> > > > On Apr 4, 5:46 pm, tmorgan99 <[email protected]> wrote:
>
> > > > > You didn't say what version of rubygems you have.  I suspect your
> > > > > problem might lie in that area.
>
> > > > > try:
> > > > > $ gem --version
> > > > > $ gem out
>
> > > > > On Apr 3, 9:42 am, danman <[email protected]> wrote:
>
> > > > > > Still no luck.
> > > > > > Any other suggestions?  I'm about at the point of creating a whole 
> > > > > > new
> > > > > > project and going from there but, i'd prefer a quicker solution.
>
> > > > > > On Apr 3, 10:41 am, danman <[email protected]> wrote:
>
> > > > > > > Thanks.  I did the 'rake rails:update' after i changed the
> > > > > > > environment.rb file.  Same result.
> > > > > > > I also did it after uninstalling the 2.3 version of Rails, but 
> > > > > > > same
> > > > > > > result.
> > > > > > > I'll see if there is a generate command option to allow you to 
> > > > > > > tell it
> > > > > > > what generator to use.
>
> > > > > > > On Apr 2, 2:20 pm, Tom Locke <[email protected]> wrote:
>
> > > > > > > > Try rake rails:update
>
> > > > > > > > Tom
>
> > > > > > > > On 2 Apr 2009, at 19:17, danman wrote:
>
> > > > > > > > > Ok, I can see on my gem list that I have rails 2.2.2.
> > > > > > > > > My 'environment.rb' file shows "RAILS_GEM_VERSION = '1.2.3' 
> > > > > > > > > unless
> > > > > > > > > defined? RAILS_GEM_VERSION".
> > > > > > > > > If I edit that file to say '2.2.2' instead and run the 
> > > > > > > > > hobo_migration,
> > > > > > > > > I get different errors:
> > > > > > > > > C:\iefeqa\genarch2>ruby script\generate hobo_migration
>
> > > > > > > > > *******************************************************************
> > > > > > > > >      * config.breakpoint_server has been deprecated and has no
> > > > > > > > > effect. *
>
> > > > > > > > > *******************************************************************
>
> > > > > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in
> > > > > > > > > `send': und
> > > > > > > > > efined method `cache_template_extensions=' for 
> > > > > > > > > ActionView::Base:Class
> > > > > > > > > (NoMethodE
> > > > > > > > > rror)
> > > > > > > > >        from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > > > > > > > initializer.rb:530:i
> > > > > > > > > n `initialize_framework_settings'
> > > > > > > > >        from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > > > > > > > initializer.rb:529:i
> > > > > > > > > n `each'
> > > > > > > > >        from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> > > > > > > > > initializer.rb:529:i
> > > > > > > > > I'm not sure if those errors are better than the 'generator 
> > > > > > > > > not found'
> > > > > > > > > but, still seems unexpected.
> > > > > > > > > Any other ideas to try?
> > > > > > > > > Thanks.
>
> > > > > > > > > On Apr 2, 1:45 pm, Frode Marton Meling 
> > > > > > > > > <[email protected]> wrote:
> > > > > > > > >> You do not have to remove rails 2.3, you just need 
> > > > > > > > >> toinstall2.2.2
> > > > > > > > >> and make sure your rails config points to version 2.2.2.
>
> > > > > > > > >> You can have multiple installations of rails-version at the 
> > > > > > > > >> same time
>
> > > > > > > > >> /Frode
> > > > > > > > >> On Apr 2, 2009, at 7:27 PM, danman wrote:
>
> > > > > > > > >>> I dropped all the 2.3 gems I could find however, i still 
> > > > > > > > >>> get the  
> > > > > > > > >>> same
> > > > > > > > >>> error.  When you said Rails 2.2, is that the same as Rails 
> > > > > > > > >>> 2.2.2?
> > > > > > > > >>> Here is my list of gems:
> > > > > > > > >>> actionmailer (2.2.2, 1.3.3)
> > > > > > > > >>> actionpack (2.2.2, 1.13.3)
> > > > > > > > >>> actionwebservice (1.2.3)
> > > > > > > > >>> activerecord (2.2.2, 1.15.3)
> > > > > > > > >>> activeresource (2.2.2)
> > > > > > > > >>> activesupport (2.2.2, 1.4.2)
> > > > > > > > >>> acts_as_ferret (0.4.3)
> > > > > > > > >>> cheat (1.2.1)
> > > > > > > > >>> fxri (0.3.6)
> > > > > > > > >>> fxruby (1.6.6)
> > > > > > > > >>> gruff (0.3.1)
> > > > > > > > >>> hobofields (0.8.5)
> > > > > > > > >>> hobosupport (0.8.5)
> > > > > > > > >>> hoe (1.5.3)
> > > > > > > > >>> hpricot (0.4)
> > > > > > > > >>> log4r (1.0.5)
> > > > > > > > >>> mislav-will_paginate (2.3.8)
> > > > > > > > >>> mysql (2.7.3)
> > > > > > > > >>> railroad (0.5.0)
> > > > > > > > >>> rails (2.2.2, 1.2.3)
> > > > > > > > >>> rake (0.8.4, 0.8.1, 0.7.2)
> > > > > > > > >>> rgl (0.2.3)
> > > > > > > > >>> rmagick (1.15.9)
> > > > > > > > >>> ruby-graphviz (0.8.0)
> > > > > > > > >>> rubyforge (1.0.0)
> > > > > > > > >>> rubygems-update (1.3.1, 0.9.4)
> > > > > > > > >>> rubyshop (0.0.2)
> > > > > > > > >>> sources (0.0.1)
> > > > > > > > >>> stream (0.5)
> > > > > > > > >>> win32-clipboard (0.4.1)
> > > > > > > > >>> win32-dir (0.3.1)
> > > > > > > > >>> win32-eventlog (0.4.3)
> > > > > > > > >>> win32-file (0.5.3)
> > > > > > > > >>> win32-file-stat (1.2.3)
> > > > > > > > >>> win32-process (0.5.1)
> > > > > > > > >>> win32-sapi (0.1.3)
> > > > > > > > >>> win32-sound (0.4.0)
> > > > > > > > >>> windows-pr (0.6.2)
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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