Live data from Hacker News

Help with Rails?

news.ycombinator.com

51–54 of 54 posts

Re: Help with Rails?

#51

Oh, 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…

I know you're not on a mac, but I just re-setup a mac and went through this. So, for anyone wondering. Luckily with homebrew supporting rbenv now it's a lot easier to do. 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…

Correct me if I'm missing something, but why exactly are you using 2.0.0-rc2, when there is 2.0.0-p247 available?

I'd suggest doing

    rbenv install 2.0.0-p247

    rbenv global 2.0.0-p247
Also, it's openssl, not open-ssl, (just in case someone couldn't complete the step) i.e.

    brew install openssl

Re: Help with Rails?

#52
This thread turned out to be a great source of information right when I needed it! Thanks, everyone!

However, I'm just starting to work on a webapp for a client (learning from scratch, this is my first big project in Rails), and I was wondering which version to start with. Since I'm starting with no pre-existing codebase, it's very tempting to go with Rails 4.0 as opposed to 3.2, but I'm afraid not all essential gems support it yet. Also, there probably isn't as much information for bugs and problems etc.

Any advice would be greatly appreciated!

Re: Help with Rails?

#53
post #39
post #26

I 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.

That's all well and good, unless you're actually wanting to learn Rails. :)

Of course. My impression was that Rails was just a means to an end though. That said, learning Rails would probably be a lot easier after first grokking a simpler php setup.

Re: Help with Rails?

#54
post #45

Earlier quoted context omitted.

There's a really long way from getting bundle to run until you need to deploy. I'd recommend not worrying about deployment until you've got your app up and running locally. If you want to develop on Linux without buying another machine, you could (at least for now) download VirtualBox and install Linux on it. That will let you run Linux from within Windows.

My son said the same thing. I guess my concern was getting all the way to the deployment stage only to realize there was something I should have been doing differently way too late in the game... (I'm probably being paranoid!) Anyhow, so you recommend that I press with the development and NOT worry about deploying (to Heroko -- or whatever) until much later... I can live with that! (Just run the rails server and conn…

Honestly, yeah.. deploying to Heroku is ridiculously simple for simple apps, and from the sounds of it I would expect that you don't have a hundred moving pieces in it yet (and may never). Deploying to something else, like AWS, is more involved but still it's most likely not going to be much different in the end than it is in the beginning.
Post reply on HN