Newbie questions

I just downloaded Ruby Mine and have a silli question, how can I create a new intellij project with an existing rails app? There is an option "open directory" in the file menu, if I choose this for my rails app, some things like tab completition work, but i cannot start a server. I can create a new run configuration, but not select a ruby script.. what's the way to migrate your rails projects into Ruby Mine?

6 comments
Comment actions Permalink

What build of RubyMine do you use? (see Help|About)?

You should open root directory of rails application (e.g. if "app", "config" and etc folders are located in folder "rails_example" - choose "rails_example" directory in Open Directory dialog). Then RubyMine will automatically create two default run configurations for development and production. If you try to create new "Rails" configuration in Run|Edit Configuration RubyMine will automatically set "[your_project_root]/script/server" value in readonly field "Ruby Script". Please try again.

P.S: Also do you see option Rails in View as: combo box of 1: Project tool window?

0
Comment actions Permalink

> what build?

472

So if I just 'open' it, it reads the directory struct and creates the concerning project files (without asking?!).. I just closed it and opened it again, but I still can't run it.. i also tried deleting the .idea folder, which was outside the rails application root, but it didn't work.

> P.S: Also do you see option Rails in View as: combo box of 1: Project tool window?

what?

0
Comment actions Permalink

> what build?

472

I recommend you download today's RubyMine EAP, build #500 - http://www.jetbrains.com/ruby/download/index.html?top, about it's new features - http://blogs.jetbrains.com/ruby/2008/11/rubymine-eap-build-500/.



 

> P.S: Also do you see option Rails in View as: combo box of 1: Project tool window?


what?


See http://www.jetbrains.com/ruby/features/screenshots/rails/rails_project.png. If you don't see "Rails" variant in "View as" menu it proves that RubyMine doesn't consider your project as Rails project thus you cannot create Rails run configuration, use nice rails-specific autocompletion, etc.

So if I just 'open' it, it reads the directory struct and creates the concerning project files (without asking?!)..


It creates only folder ".idea" under project root.

i also tried deleting the .idea folder, which was outside the rails application root, but it didn't work.


RubyMine creates the folder ".idea" in project root folder. Try to quit RubyMine IDE, delete ".idea" folder, run RubyMine and just 'open' rails application root directory. E.g. you can create fake empty project from console (>rails my_test_application) and select directory "my_test_application" in open dialog and open it.
P.S: I've checked it several times on my computer and it's works.

0
Comment actions Permalink

I checked it out again from svn, using Ruby Mine and it worked.. however it doesn't exactly solve the problem, but works for now..

0
Comment actions Permalink

> P.S: I've checked it several times on my computer and it's works.

I didn't say it does not work..

0
Comment actions Permalink

Good news!
But it also should work without checking out from svn using RubyMine. If we reproduce this bug we will fix it, unfortunately now I don't know how to reproduce it.
Thanks for the issue!

0

Please sign in to leave a comment.