Ruby on Rails is an open-source web development framework optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.

learn more… | top users | synonyms

43
votes
3answers
27k views

gem install rails doesn't do anything

I installed Ruby and RubyGems on Ubuntu 10.04. Ruby is version 1.8.7. Gems is version 1.3.7. When I try sudo gem install rails, nothing happens. It just hangs forever. What am I missing? Thanks!
14
votes
2answers
12k views

How to install the latest version of Ruby and Ruby on Rails in Ubuntu?

I installed Ruby with the command apt-get install ruby1.9.1, but when I enter ruby in the console, nothing happens. I have to use the command ruby1.9.1-v ruby 1.9.2p0 (2010-08-18 revision 29036) ...
9
votes
2answers
971 views

Install packages through apt-get or gem?

If a package is available both through apt-get and gem, which one should I choose? I'm on Ubuntu and I don't know if I should install rake through apt-get or gem. I use both apt-get and gem packages ...
6
votes
2answers
4k views

Install rails on Mac OS X

I try to install Rails on Mac OS X. I already installed ruby. $ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin11.4.2] I check whether Rails is installed: $ rails -v Rails is ...
5
votes
2answers
3k views

Readline problems installing Ruby with RVM

I'm struggling with rvm. This isn't the first time I've installed rvm, and it isn't the first time I've had problems with it, but this problem is proving to be a right pain; and all of the articles ...
4
votes
2answers
10k views

(13)Permission denied: make_sock: could not bind to address [::]:80, Mac OS Lion

I was trying to get passenger to work on my home computer and ran into this problem. I get this error when I try to start Apache. (13)Permission denied: make_sock: could not bind to address [::]:80 ...
4
votes
3answers
2k views

Heroku on Ubuntu 10.04 (RVM with 1.9.2)

so I'm trying to install heroku and when I run it I get the following message: /home/brian/.rvm/gems/ruby-1.9.2-p0@seniorproject/gems/rest-client-1.4.2/lib/restclient.rb:9:in `rescue in <top ...
4
votes
2answers
730 views

How to make TAR to not save the directory hierarchy

system("tar -czf #{RAILS_ROOT}/tmp/export-result #{RAILS_ROOT}/tmp/export") When I decompress the resulting file I get app/c3ec2057-7d3a-40d9-9a9d-d5c3fe3ffd6f/home/tmp/export/and_the_files I ...
4
votes
2answers
219 views

Why does bash sometimes think my $HOME isn't the correct directory?

Like the title says it seems that bash sometimes misidentifies my $HOME. This cropped up after a seemingly unique series of events that I will now replay in broad strokes. Running OS X 10.6 with ...
3
votes
1answer
763 views

Why does Xcode have anything to do with installing Rails?

I replaced a broken logic board on my MacBook Pro and have OS X Snow Leopard reinstalled without XCode. I installed gems successfully without running into any errors, but when I tried installing ...
3
votes
3answers
1k views

Where can I find the rails executable in Debian?

I am having a problem with my installation of Ruby/Rails on Debian. I've installed Ruby 1.9.1(1.9.2) using the package manager and I've created links to ruby1.9.1 and whatnot to allow me to use the ...
3
votes
2answers
4k views

Unknown ruby interpreter version

I have a MacBook Pro, running Mavericks, but I'm not too acquainted with its inner workings. I'm just a humble CS student. After installing Ruby 1.9.3 and Rails 4.0.0, I get this annoying message ...
3
votes
1answer
754 views

How to set the default language in Notepad++ for Rails View files

Similar question to this but my question goes a step further. I'm developing in rails and would like Notepad++ to automatically use html formatting on files with the extension html.erb. For example ...
2
votes
3answers
416 views

How to install rvm as user jenkins?

I am following these steps to setup a Jenkins server on an Ubuntu EC2 instance. Everything is fine until I get to this step: As you can see (at the end of the output) I am being asked for the ...
2
votes
1answer
2k views

Bundle install not working for ubuntu [closed]

every time i run bundle install on my rails app i get the following errors. could it be because i just changed my os from windows to linux(ubuntu) Fetching source index for http://rubygems.org/ ...
2
votes
4answers
559 views

Rails - Installation Error

I had used below mentioned commands to install rails in ubuntu 12.10 sudo apt-get update sudo apt-get install curl \curl -L https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm rvm ...
2
votes
2answers
583 views

Editing files on virtual machine

I installed virtul Linux on my Windows XP through Virtual Box for using Ruby on Rails, but found one problem all my files that work with Rails directories is on virtual machine and I can’t edit them ...
2
votes
1answer
356 views

Accessing my Rails webrick behind proxy?

In my mackbook, when I try to connect to my rails application in office I can't , in the office there are some http proxy , and when I run my rails like this : sudo rails s -p8080 => Booting ...
2
votes
1answer
514 views

Virtualbox two networks slow

I am running an Ubuntu server guest on Win 7 guest, and am running a webrick server (RoR dev). If I have just a host-only network, everything works fine and the browser response is instant. However, ...
2
votes
1answer
391 views

How to do successive commits into github repository?

I already did my first commit into github. But now I have checked out the already committed repository using 'git clone <repo name>'. Now after updating my code I want to commit back the new ...
2
votes
5answers
717 views

Ubuntu desktop through pen drive for rails development

I am window user and .net web developer. I am trying hands in ruby and "ruby on rails". Everybody suggests me to use OSx or Linux. Can i install Ubuntu on "pen drive" and use as development machine ...
2
votes
1answer
316 views

All rails application logs being written to apache error log

I've deployed a ruby on rails 4.0.3 application to a server that I've configured with the following likely relevant software: Ubuntu 12.04.4 x64 server Phusion Passenger 4.0.37 Apache 2.2.22 Ruby ...
2
votes
1answer
1k views

Amazon Opsworks RDS, EC2, Rails 3, Phusion - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql2::Error)

I'm really close to having a simple Rails app deployed on Amazon Opsworks - using an EC2 instance running Phusion Passenger, and an RDS instance for the database server (it runs mySQL). The app code ...
2
votes
1answer
625 views

(-bash: initdb: command not found) When installing postgres mac

I get the following error (-bash: initdb: command not found) in the terminal when trying to install postgres on my mountain lion mac osx? Also, does any one have a good resource for installing ...
2
votes
1answer
502 views

websites resolving in browser but not resolving in CLI. Can ping IP but not domain name (unknown host)

Hi guys I'm currently developing using rails and for some reason bundle install is returning the following output Error Bundler::HTTPError during request to dependency API Fetching full source index ...
2
votes
3answers
2k views

Cannot connect to WEBrick on home network

I'm an Android developer and often my applications require server-side code. I typically use Ruby on Rails for the web app, and during development will run the server on my local machine (Mac OS X) ...
2
votes
0answers
22 views

Can I work on a Rails project in a directory other than C:\Sites on Windows?

I'm a beginner to Rails. I installed Rails using RailsInstaller for Windows. Is C:\Sites\ a magic directory path or can I still use the Rails framework in a directory like ...
1
vote
2answers
198 views

How can I update Ruby and Rails on MacOS 10.6?

I just got a Macbook laptop that is running 10.6.3 AKA "Snow Leopard". I know it comes with Ruby 1.8.7 and Rails 2.3, but I was wondering what the best way is to update those to Ruby 1.9.2 and Rails ...
1
vote
4answers
5k views

Installing Ruby on Rails on Ubuntu 10.04: A Living Nightmare

Update #3: Starting over from scratch, shortened this post, decided to re-install a clean copy of Ubuntu 10.04 on a VM and go through the walk-through again. So, all the steps go without a hitch. As ...
1
vote
3answers
2k views

How install gem rails for all users in arch-linux

When install rails with sudo gem install rails or with root user, this install in $HOME/.gem and only works for actual user, how install for all users in the system ?
1
vote
3answers
2k views

Is VirtualBox really slow compared to the host OS? (for Ruby development)

I have VirtualBox running Ubuntu as a guest environment on my Macbook Pro running Leopard OS X 10.5. I timed the same batch of Ruby on Rails unit tests on both systems. The difference seems to be ...
1
vote
1answer
976 views

Vagrant gem install not working

I am new to vagrant and I'm trying to follow a tutorial I found online for setting up an open-source web application. I have installed vagrant successfully. My problem is that when I try to run the ...
1
vote
1answer
2k views

How to set a gemset as default in RVM?

I'm using RVM in my OS X machine, I use ruby 1.9.2 by default with RVM. Each time I create a terminal session I have to type "rvm gemset use rails_app", to use my gemset … I would like "rails_app" ...
1
vote
3answers
1k views

Mainstream Linux on 1GB HDD

I've decided to start learning Linux + Ruby + RoR (Ruby on Rails). The problem is the only personal computer I have is a laptop with 1GB flash card and I can't afford to buy more hardware right now. ...
1
vote
3answers
5k views

What's the equivalent of Ubuntu's apt-get command on a Mac

I'm trying to install the Feedzirra gem to do some work with RSS feeds. One documented issue with the installation is the need to install libcurl3-dev to address a common error in the installation ...
1
vote
2answers
725 views

Can a web server and XBMC HTPC co exist happily? [closed]

I have a machine that is currently dedicated to running my home theatre. It is way more powerful than it needs to be, and spec wise would have no problem running both a few websites and an HTPC What ...
1
vote
2answers
1k views

sublime 2 rails multi line comments key command

when coding ruby in sublime text 2, are their key commands for multi line commentS? class Myclass include MyMethods def instance_method puts "hi from the instance method" ...
1
vote
1answer
1k views

Redmine installation issues rake command issue, MySQL database issue?

I have somewhat of a complex issue involving several different programs including redmine, MySQL, Ruby, Ruby on Rails etc. This is on Windows XP. I am following the redmine instructions here: ...
1
vote
2answers
593 views

What's the typical latency for key strokes using an ssh connection on a local wifi network?

I develop software on a Macbook Air 1.6 Ghz but find running Rails test suites and generators on this computer very slow. I'm thinking about buying a Linux tower to put on my local wireless network to ...
1
vote
1answer
242 views

Textmate rails bundle

Normally when working inside a Ruby on Rails view file, I can hit CTRL + SHIFT + . to get open/close tags for rails like so: <%= selection %> I'm not sure how, but yesterday this ...
1
vote
1answer
182 views

How do I use shellscripts for rails with 'screen'?

I've recently started Ruby on Rails development, and I'm using Vagrant as a VM to contain my Rails project, because Windows is a terrible OS to use for any sort of Ruby development, due to the ...
1
vote
1answer
209 views

Gemfile template

I'm trying to modify the default gemfile template on debian, and it doesn't seem to be anywhere to be found. Is this found somewhere on the system called "Gemfile" or is it located in another ...
1
vote
1answer
224 views

Showing Directory Root When Launching Rails App Using Apache2 and Passenger

I have done the following in an attempt to host a Rails 3.2.3 application using Apache 2.2.21 and Passenger 3.0.13: Installed gem Passenger rvmsudo passenger-install-apache2-module Added website ...
1
vote
1answer
120 views

Upgrading Rails Dev Unit from Snow Leopard to Lion

Should I take any considerations for my Rails 3.0/3.1, Ruby 1.9.2 development machine running OS X 10.6 Snow Leopard before upgrading to OS X 10.7 Lion? Will there be anything that I need to ...
1
vote
2answers
817 views

How to install Rails on an EC2 server?

I have installed Rails on my localhost, and now, I would like to install it on an Amazon EC2 server.
1
vote
1answer
51 views

How do I mark a user as admin in mysql

I am building a ruby on rails application using mysql for storing application related data. My application has a user console and admin console. Access to admin console is restricted to ...
1
vote
2answers
3k views

Rails requires Rubygems but I have the gems

Update: I noticed that which ruby and whereis ruby reports back different locations: which ruby /opt/local/bin/ruby whereis ruby /usr/bin/ruby I recently upgraded ruby to ruby 1.8.7 (2009-06-12 ...
1
vote
1answer
450 views

How to improve the way I use Textmate for Ruby on Rails, HTML and Javascript?

I use the latest version of textmate for all my Rails development needs and I feel that I'm under-using the possibilities or this software since I only installed the ruby on rails bundle and use ...
1
vote
0answers
180 views

Hardware concerns for optimal ruby on rails development on ubuntu machine

I've been developing dynamic web sites using ruby on rails on a 5 year old mac mini which has been great except that it takes too much time -- 15 minutes or so -- to run my simple test suites. I ...
1
vote
0answers
609 views

postgres: unable to install postgresql-contrib-9.1

My system version is Ubuntu 13.10 64bit. I encountered this problem by setting up PostgreSQL in a Rails app. First I ran rake db:migrate and it showed an error: -- enable_extension("hstore") rake ...