This Question is Answered

2 "helpful" answers available (2 pts)
3 Replies Last post: Jan 21, 2013 7:26 PM by Oleg Sukhodolsky  
Matthew Robbins Newbie 2 posts since
Jan 20, 2013
Currently Being Moderated

Jan 20, 2013 9:59 AM

When Running the IRB Console in RubyMine I get an error

I have started a new Ruby Rails project. I have a simple model that I have generated, migrated to the DB and now I am trying to run the IRB Console(Rails Console) inside RubyMine so I can interact with the DB. I have set the PATH in Default configurations for the IRB Console and I get this error:

 

NameError: uninitialized constant User
from (irb):1
from /Users/******/.rvm/rubies/ruby-1.9.3-p362/bin/irb:16:in `’
from -e:1:in `load’
from -e:1:in `’

 

I do this through my command line and it works just fine when I do a ‘rails console’ command inside my Ruby project.

Any ideas or thoughts on what I may be doing wrong? I would think others would have this same problem or Jetbrains would have fixed this as it seems pretty standard to me.

Any help would be appreciated?

Thanks,
Matt

Oleg Sukhodolsky JetBrains 388 posts since
Apr 4, 2012
Currently Being Moderated
Jan 20, 2013 1:35 PM in response to: Matthew Robbins
Re: When Running the IRB Console in RubyMine I get an error

Hi,

 

I'm not sure I've understood what exectly you are running.

In RM we have Tools|Run IRB Console.. menu item to run irb (which knows nothing about rails environment).

Also we have Tools|Run Rails Console.. which is the same as run "rails console" in command line.

So, what are you running?

 

Regards, Oleg.

Oleg Sukhodolsky JetBrains 388 posts since
Apr 4, 2012
Currently Being Moderated
Jan 21, 2013 7:26 PM in response to: Matthew Robbins
Re: When Running the IRB Console in RubyMine I get an error

You are always welcome

 

Oleg.

More Like This

  • Retrieving data ...