Setup/configuration RubyMine guides needed for each OS platform (Mac OSX , ...)

I first installed RubyMine 1.1, but was unable to create a rails project with any other version than 1.2.6, which I assume is the default rails installed on a Mac OSX 10.5?

I have several other rails gems installed on my platformed, using sudo gem install rails --version=xxxx

Not sure how to configure RubyMine to use the gem location that I normally use. Maybe it is a PATH setting?

I saw a FAQ entry with details on how to setup the PATH for RubyMine

/etc/launchd.conf

setenv PATH /Users/kristianconsult/.gem/ruby/1.8/bin:/opt/local/bin:/opt/local/sbin:/opt/local/libexec/git-core:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

I would really like if you had a Getting started guide for setting up RubyMine for each platform, for creating new projects with a choice of rails and other gem versions and how to import projects and install required gems, using Git and Deployment.
Would also be nice with a Deploy to Cloud option like Aptana has. Right now to deploy I would load the project in Aptana, since the whole Capistrano configuration thingy seems a bit tricky. Maybe some guides for capistrano settings for some of the most common Rails deployment hosts would help

3 comments
Comment actions Permalink

Here you can find some information on deploying using RubyMine and Capistrano: http://www.jetbrains.net/devnet/docs/DOC-1158

Regards,
Oleg

0
Comment actions Permalink

Yes, I saw that article on RubyMine and Capistrano before. It is very general, no advice on how to define the capistrano settings for a Rails host provider. Would be nice with one or more examples. OK, I now that is not specifi to the RubyMine IDE, but still... maybe some pointers/links to some good info on this!?
---
I figured out how to change my ruby and gem settings. It was all down to the Ruby SDK used (1.8.6 default for Mac OSX 10.5)

I used

> which ruby

and then used that location as the base for a new SDK which I added (1.8.7 ruby). That resolved the gems problem.

I think during the RubyMine install or when launching, it should do a "which ruby" and add this as an SDK if no SDK exists for this ruby location.

Now I only have problem with mysql gem and missing socket file. Maybe a reboot will help!?

0
Comment actions Permalink

I think during the RubyMine install or when launching, it should do a "which ruby" and add this as an SDK if no SDK exists for this ruby location.

RubyMine did the similar thing. Problem is in Mac OS environment. By default "which ruby" in all your *.app applications (except Terminal.app) will say that it is "/usr/bin/ruby". Application launcher in Mac OS just ignores your ~/.profile, ~/.bashrc etc settings and launches application in very strange environment. I have no idea why Apple uses such strage way. So tip http://www.jetbrains.net/devnet/docs/DOC-1160 explains how to ask Mac OS use the same environment variables for all Applications.

As for startup guide you are right. At current moment we have such guide only for Windows (See Help | Help Topics) and small demo for MacOS.

0

Please sign in to leave a comment.