Search code examples
rubyrubymine

Uninitialized constant error using Ruby in RubyMine


Has anyone used RubyMine who could help me out?

I am new to RubyMine, and when I create my first project and add a few classes and wire them together for a simple meaningless application I am getting this error: "uninitialized constant RubyApp (NameError)"

But when I take all the classes and put them in one file then run it, it runs fine.

What am I missing about using RubyMine here?

Thanks for the help.


Solution

  • Is "RubyApp" one of your classes? If so, it sounds like you're not requiring the other ruby files you're creating.

    RubyMine pretty much doesn't get in your way at all, although it does like having gems 'attached' to the project.