i have a problem with rails console

View: New views
4 Messages — Rating Filter:   Alert me  

i have a problem with rails console

by chukster :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Can somone please i am stuck i have create a ruby on rails application using ruby platform 1.8.6-p287 on the server WEBrick



i have specified the Database information Directly  using mysql Database Adapter but when i click next i get this message



"Rake tasks fetching failed with (working directory:





Rails requres RubyGems >=(you have 1.3.1). Please 'gem update --system' and try again"





So to try and solve this i  went to my Start command prompt with ruby on ruby 1.9.1-p243



and typed: $ gem update -- system (see code below)



When that did not work i followed these instructions (see code below) :

  $ gem install rubygems-update  (again, might need to be admin/root)

  $ update_rubygems  



to get rubygems 1.3.2 from the instructions here http://blog.segment7.net/articles/2009/04/15/rubygems-1-3-2


Code:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]



C:\Users\arinze>gem update --system

Updating RubyGems

Nothing to update



C:\Users\arinze>gem update --system

Updating RubyGems

Nothing to update



C:\Users\arinze>gem install rubygems-update

Successfully installed rubygems-update-1.3.5

1 gem installed

Installing ri documentation for rubygems-update-1.3.5...

Installing RDoc documentation for rubygems-update-1.3.5...

Could not find main page README



C:\Users\arinze>update_rubygems

Installing RubyGems 1.3.5

RubyGems 1.3.5 installed



´╗┐=== 1.3.5 / 2009-07-21



Bug fixes:



* Fix use of prerelease gems.

* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.



Deprecation Notices:



* Bulk index update is no longer supported (the code currently remains, but no

  the tests)

* Gem::manage_gems was removed in 1.3.3.

* Time::today was removed in 1.3.3.





------------------------------------------------------------------------------



RubyGems installed the following executables:

        C:/Ruby19/bin/gem





C:\Users\arinze>gem update --system

Updating RubyGems

Nothing to update

 



ok i solved this problem by downloading rubygems-1.3.3.zip

then runnig setup.rb



but i have a new problem



when i went to my new project and generated a new model and then go to rails console for my project i get this message



"Loading development environment (Rails 2.3.4)

'irb.bat' is not recognized as an internal or external command,

operable program or batch file.

"



Can somone please help me






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: i have a problem with rails console

by Hassan Schroeder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 29, 2009 at 9:56 AM, chukster <arinze_ngonadi@...> wrote:
>
> Can somone please i am stuck i have create a ruby on rails application using ruby platform 1.8.6-p287 on the server WEBrick

> So to try and solve this i  went to my Start command prompt with ruby on ruby 1.9.1-p243

? You're using 2 different versions of Ruby here -- you'll never make
any progress unless you stick to one. And I would avoid using 1.9.1
for a Rails project right now, so...

For that matter, I would forget the IDE for a while and get your Ruby
and RubyGems installations straightened out, to the point you can
create a Rails project from the command line and have it work with
MySQL.

YMMV,
--
Hassan Schroeder ------------------------ hassan.schroeder@...
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


i have a problem with rails console

by chukster :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi thanks for the reply but i dont see how it solves my problem



"Loading development environment (Rails 2.3.4)

'irb.bat' is not recognized as an internal or external command,

operable program or batch file.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: i have a problem with rails console

by Hassan Schroeder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 29, 2009 at 12:35 PM, chukster <arinze_ngonadi@...> wrote:
>
> hi thanks for the reply but i dont see how it solves my problem

?? Your environment appears to be *completely* screwed up. :-)

So you need to get to where you're using ONE version of ruby,
not 2 or 3, and get that ONE version into a sane, usable state.

That's the first step in "solving your problem".

--
Hassan Schroeder ------------------------ hassan.schroeder@...
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...