how do i configure for an existing RoR project

If I hit new project and "Ruby on Rails", Ruby Mine createst a new rails app.

If I try to point Ruby Mine at an existing project (by creating new project/empty), then it gets confused.  I don't think it likes my directory structure.  In the "View as : Rails " view none of my controllers/models/etc (source) show up.  And when I try to run my rails app it says in the configuration page: "Run Configuration error: Ruby script doesn't exist"

So what directory structure is it looking for?

How do I point a new project at my rails app?

btw, I'm using RubyMine EAP 1265

5 comments
Comment actions Permalink

Just do an "Open Directory" and point it to your Rails App. RubyMine will "do the right thing" (tm)

cheers
jc

0
Comment actions Permalink

So I think most people will see "new project" and think that is the task to do.  I suggest something more intuitive, like instead of "open directory", push that functionality into the new project wizard.


Seriously, the way it's set up is very non-intuitive

1
Comment actions Permalink

Phil,

We have such complicated new project wizard in IntelliJ IDEA and we decided to use simpler UI in RubyMine. E.g text editors (TextMate, Emacs) also don't have any special wizards. Probably we should rename "Open Directory" to something other. Have you any ideas ?

0
Comment actions Permalink

Well, I'm not sure what all you can do with "open directory" - but maybe "import rails application".

All I know is that the current implementation doesn't make it clear than "new project" is going to create a brand new rails application.  I think people are going to lose an existing app when RubyMine creates a new rails app over their existing one (perhaps put in some code to warn about that if it's detected).

0
Comment actions Permalink

but maybe "import rails application".

"Open Directory" action allows to import ruby/rails projects and open already imported / created from RubyMine projects. Thus your variant isn't good..

All I know is that the current implementation doesn't make it clear than "new project" is going to create a brand new rails application.  I think people are going to lose an existing app when RubyMine creates a new rails app over their existing one (perhaps put in some code to warn about that if it's detected).

We have such warning
Picture 1.png
and

Picture 3.png

0

Please sign in to leave a comment.