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

-1
votes
1answer
190 views

tab complete not working for vim in particular directory - ubuntu 12.04

I am working on a ruby on rails app. All of the sudden the command line tab complete stopped working for vim, only for files though, and only for the vim command (i.e. works for other commands, ls, ...
2
votes
1answer
497 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 ...
1
vote
3answers
918 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 ?
0
votes
1answer
310 views

I cannot get pg-0.14.0 gem installed after Mountain Lion install

I have been trying for some time now to get my Rails development environment back up since I upgraded from Lion to Mountain Lion. The problem is specifically installing the pg-0.14.0 (postgresql) gem. ...
1
vote
1answer
156 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
0answers
193 views

Plugin migrations for Redmine: place plugin in db/migrate instead of plugin folder [closed]

I'm a newbie in ruby on rails and creating a redmine plugin. I created a model Allissue without using any column. Now I wanted to add a column project_name with the help of migration ./script/generate ...
3
votes
1answer
626 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 ...
1
vote
1answer
113 views

Problems installing rails on Ubuntu 12.04. Rails gems library is empty

I got some problem installing rails on Ubuntu 12.04. I have rails working on my Ubuntu for a little time. But for some reason I uninstall rails. When I decided to install it again with sudo gem ...
0
votes
1answer
153 views

After closing the ssh terminal, the thin server is down

I have a rails project run on the thin server(1.3.1) on a ubuntu server. I ssh to the server and start thin with command 'thin start -C config/thin.yml', following the thin.yml, port: 3000 log: ...
1
vote
1answer
168 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 ...
0
votes
1answer
399 views

Fetch _all_remote_specs: undefined method 'list' - Rails on Mac OSx Lion

I'm trying to create a new rails application on my Mac running Lion. I installed Rails using RubyGems. I also went ahead and installed the XCode command line tools. When I attempt to create a new ...
2
votes
1answer
422 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 ...
-1
votes
1answer
162 views

Web Server for SVN+PHP+Django+Rails [closed]

Foreword: I am not asking for the differences between Nginx and Apache, nor do I want to start a "which one is better discussion. I would like to ask for help with choosing the most adequate solution ...
0
votes
1answer
171 views

Share local server through a router on a Mac

I've built an application using the Rails framework that was designed for two or three iPads to access through a local network. However, the building I will rent does not have an internet connection ...
0
votes
1answer
1k views

Restarting a Rails Server

What exactly does this command do, in regards to running a Rails server? ~$ sudo touch restart.txt I thought it restarts the Rails server, but it happens so fast when I run it, that I can hardly ...
1
vote
1answer
363 views

How to make curly braces collapsable in BBEdit (TextWrangler) for ruby on rails code?

So I really like how BBEdit allows you to fold blocks of code. But for Ruby code it doesn't recognize curly braces as a place to insert folds automatically. Is it possible to tweak the preferences in ...
1
vote
0answers
138 views

Redmine using fastcgi [closed]

I am a Software Engineer tasked with installing Redmine on our server. Currently it's running using WebRick from /usr/share/redmine but I would like to: have it run in /srv/redmine (chroot if ...
1
vote
0answers
332 views

Ruby on Rails fails on Windows 7, report activate error

I used the installer kit on http://www.railsinstaller.org/ and everything went fine. Then followed the instructions to setup a project in c:/sites and that worked. But now every time I run 'rails s' ...
0
votes
1answer
1k views

How can I avoid permission denied errors when attempting to deploy a rails app with capistrano?

Total noob here. I'm attempting to deploy an app through Capistrano. I'm getting relentless permission denied errors when I attempt to run cap deploy:update. Seemingly at least some of these errors ...
1
vote
2answers
663 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 ...
2
votes
1answer
317 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 ...
3
votes
2answers
212 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 ...
1
vote
2answers
956 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" ...
2
votes
1answer
463 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, ...
0
votes
1answer
276 views

Uninstall / Remove Ruby on Rails server Macbook Pro

Ok, I've looked everywhere for this answer and best I can get is replies like "Why would you ever want to do such a thing". What I want to do is uninstall and completely remove a rails server from my ...
1
vote
1answer
1k 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
2answers
190 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 ...
0
votes
1answer
166 views

Host OS slow to find web brick server running on linux as guest OS in VirtualBox

I am running VirtualBox 4.1.6 on Windows 7 on fairly quick machine with 12G of ram. I have a virtual machine running Ubuntu 11 on which I am doing rails development using ruby 1.9.3 and rails 3. When ...
2
votes
3answers
1k 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) ...
0
votes
1answer
278 views

why doesn't “which ruby” output anything?

I'm using Debian 6. I uninstalled ruby1.8, and then I installed ruby1.9.1. If I type "which ruby" at the command line, it doesn't output anything. It seems like it doesn't recognize it.
2
votes
0answers
21 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
1answer
343 views

How can I pretty print erb in BBedit indenting rails tags and not just markup?

I want to re-indent my code but the rails tags <% foo %> get aligned to the left with no indentation. What I'm using is: markup > utilities > format > pretty print Does anyone know if ...
4
votes
2answers
9k 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 ...
0
votes
1answer
59 views

Botched Git install

I have been learning Rails with the help of Michael Hartl's tutorial, but I think I messed something up while following his Git installation directions: First, everything works; in fact, I completed ...
1
vote
0answers
209 views

Rails can't find public system files through shared folder through virtualbox

I've just set-up a new dev environment where I have a win 7 host and ubuntu running in virtual box. My rails application files are on the host system, and I shared the folder with the guest, and I ...
1
vote
1answer
848 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
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 ...
3
votes
3answers
917 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 ...
0
votes
1answer
411 views

WAMP Server won't work

I'm using WAMP. I was out of business for two weeks than I'm back and trying to start my wamp 2. BANG. Nothing happens. The red W icon appears among the hidden icons. When I click it, shows all ...
3
votes
1answer
627 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
1answer
1k 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/ ...
0
votes
4answers
89 views

Can I shorten my directory commands in ubuntu? [duplicate]

Possible Duplicate: Can I shorten my directory commands in ubuntu? When working on a rails app I like to open all of my files through the command line like so cd my_app gedit ...
14
votes
2answers
11k 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) ...
0
votes
4answers
522 views

How do I upgrade to the newest version of Rails?

I'm running on OSX Snow Leopard. Using ruby -v I see I have 1.8.7 and using rails -v I have 2.3.5 When I try gem update rails I get the following error: bundler requires RubyGems version >= ...
0
votes
1answer
114 views

Should I run postgresql all the time?

I'm wondering whether there is any speed (in the OS) or security issues with running postgresql all the time (using launchctl) for development of rails apps, whether I should launch postgres only when ...
1
vote
2answers
756 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.
4
votes
2answers
607 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 ...
0
votes
2answers
581 views

Problem updating ruby 1.8.7 to 1.9.2 on cygwin

I am trying to update my ruby in cygwin from 1.8.7 to 1.9.2.I have pasted the ruby-1.9.2-p136.tar.gz into the required folder in the home directory.After that i entered this command. tar xvf ...
0
votes
2answers
208 views

Mac with Rails & Postgres Installed - Overheats quickly?

Anyone else have this problem? I'm on a 15" Macbook running rails and postgres. Needless to say, shortly after powering up the mac and getting into development work, the mac gets very hot at the ...
1
vote
1answer
386 views

textmate open Ruby on Rails partial shortcut

Is there a shortcut to open a Ruby on Rails partial in textmate? <%= render :partial => "/arts/menu", :locals => {:art => @art} %> Shift + Alt + Command + ↓ does not display ...