Help with Rails?
31–40 of 54 posts
Re: Help with Rails?
#32Re: Help with Rails?
#33Re: Help with Rails?
#34Oh, boy. I've gotten our rails dev environment set up on a dozen different machines now and there's always a little problem here or there. One thing I can say right off the bat: I could never get it fully up and running on Windows, unfortunately. But we have had success on both OS X and Linux machines. The trick is to 1) install rbenv or rvm, 2) build the right version of ruby, 3) install the right gems, 4) make sure…
Download the git installer and run it.
Install homebrew using their script.
brew install rbenv
brew install ruby-build
Once that is done you'll need to copy some stuff in your shell profile. It will tell you the two lines. Restart your shell.
Here's the first trick. You need openssl:
brew install open-ssl
(make sure "qmake" is now available or restart shell and see)
To see ruby versions: rbenv install -l
I installed 2.0.0-rc2: rbenv install 2.0.0-rc2
Almost there! Set it as your global ruby
rbenv global 2.0.0-rc2
Make sure this outputs the right ruby version now: ruby -v
Now install bundler and rails!
gem install bundler
gem install rails
I probably missed a step or two, but I just ran through that process and had a few bumps in the road as usual myself.
Re: Help with Rails?
#35Coming from a Windows-only background you'll find it's probably a much smoother experience while developing on a Linux desktop or in Mac OS X. Installing a nice Ubuntu 13.04 desktop is not complex, there a video which explains installing Virtualbox and Ubuntu under ten minutes: http://www.youtube.com/watch?v=0WiiswmOH1Q ... note that a desktop is not required but given your background you would feel more comfortable…
Its Ubuntu under the hood, but has a windows like UI.
I almost gave up on Rails because I was using windows; life is easier as a rails developer with Linux or a Mac.
Re: Help with Rails?
#36My tip: DON'T USE RVM. (rbenv is a good alternative) RVM is the nº1 source of problem in Ruby envs.
Re: Help with Rails?
#37there are a bunch of github projects that you can get that has everything to setup a VDI- this one seems popular: https://github.com/amaia/rails-starter-box
there's also a railscast about it: http://railscasts.com/episodes/292-virtual-machines-with-vag...
Re: Help with Rails?
#38Why do you need a Linux VDI? Test locally with the Rails server, then deploy to Heroku.
So.. You're half right IMHO! A linux desktop is entirely unnecessary. But so is Heroku. This "just deploy to Heroku" mentality is really starting to get on my nerves. Heroku is a great product that solves real problems for a certain class of project (and user). It is not, in any way, shape or form, the solution to every problem. Stop telling people it is.
Re: Help with Rails?
#39I love Rails, but I think it might be better for you to go with a PHP framework. PHP is just dead simple to get running and deploy. I would suggest something like Yii or Codeigniter, both of which are somewhat similar to Rails in their architecture.
Re: Help with Rails?
#40Why do you need a Linux VDI? Test locally with the Rails server, then deploy to Heroku.
So.. You're half right IMHO! A linux desktop is entirely unnecessary. But so is Heroku. This "just deploy to Heroku" mentality is really starting to get on my nerves. Heroku is a great product that solves real problems for a certain class of project (and user). It is not, in any way, shape or form, the solution to every problem. Stop telling people it is.