Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

learn more… | top users | synonyms

0
votes
2answers
346 views

How do I input Terminal commands when running a rails server?

I just started using Rails a few days ago, and I'm having trouble with terminal commands. The textbook I am reading keeps telling me to run Terminal commands while having a Rails server running. This ...
0
votes
2answers
834 views

Amazon EC2 and eventmachine encryption issues

I'm testing out an Amazon EC2 instance (Amazon Linux AMI 2011.09, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.) to see if it'll serve my purposes. I've written a small backend in Ruby ...
1
vote
3answers
10k views

Why am I getting “rvm: command not found” on Ubuntu?

I am trying to set up Siri Proxy, and I come up to the steps: rvmsudo rvm install 1.9.3 rvm use 1.9.3 --default rvmsudo gem install eventmachine CFPropertyList httparty json uuidtools But I can't ...
1
vote
2answers
204 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 ...
4
votes
2answers
4k views

Why can't I set the default Ruby version in Ubuntu?

I'm trying to set my Ruby version to be 1.9.2, but I can't change it from the system Ruby installation. What am I doing wrong? My terminal output is: $ rvm list rvm rubies => ruby-1.9.2-p180 [ ...
1
vote
0answers
104 views

How do I execute a Ruby 1.9.3 program from Windows Explorer on Windows 7?

I wrote a Ruby program that will check a *.log file for key words and phrases. The program is called "Check_Log.rb". I use Windows 7 and I'd like to be able to right click the log file in Windows ...
7
votes
5answers
3k views

How do I alias a Homebrew installed Ruby 1.9 gem binary in /usr/local/bin?

Homebrew's Ruby 1.9 ships with rubygems. Doing gem install ... installs files and binaries into some long-winded path. For example, bundler is installed at: ...
0
votes
1answer
174 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 ...
0
votes
1answer
328 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.
0
votes
1answer
327 views

Process monitor service in Windows

I need something that runs in the background as a service (Windows), watches defined process and when it crosses thresholds it restarts/stop/starts the process again? (similar functionality of rubygem ...
2
votes
1answer
2k views

Installing Ruby with Homebrew

I'm trying to install Ruby 1.9 using Homebrew. I'm using Mac OS X Lion, so Ruby 1.8.7 is installed by default. I've got Homebrew installed at /usr/local/bin/brew (well that's what it says if I run ...
9
votes
5answers
3k views

Homebrew keeps saying XCode is not installed

I'm trying to installed Ruby using Homebrew, the OSX package manager. When I run 'brew install ruby' I keep getting the message 'Warning: XCode is not installed!'. XCode is installed, it's lying. ...
2
votes
2answers
1k views

Ubuntu - Ruby Daemon script creates two processes - sh and ruby - PID file points at sh, not ruby

The PID file for a ruby process I have running as a daemon is getting the wrong PID. It appears that running /etc/init.d/sinatra start creates two processes - sh and ruby, and the PID that ends up in ...
0
votes
1answer
97 views

How to keep gems in sync for two ruby versions?

I use MacPorts to install and update two versions of ruby (1.8.7 and 1.9.2). How to make gems of both versions be in sync? Is it possible to use same directory for gems, but make native extensions to ...
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: ...
5
votes
2answers
421 views

Set the OS X clipboard to a rich text link in a Ruby or shell script

I'm trying to generate a report by using a Ruby script to parse an XML document. I'm pulling link text and the actual URL and I'd like to be able to format those in a way that I could simply ...
2
votes
1answer
206 views

Problems with git and bundler

I'm trying to set up Gitorious on my Server with this tutorial and having problems over problems with gem/git. After fixing a lot of libs and dependancies, bundler now won't work with git ...
2
votes
1answer
280 views

Can't find sqlite3 in this ruby/rails version using rvm

I installed rvm and am using 1.9.2 with rails 3.05. I was able to create a new application but once I moved into the directory and tried to start the server ("rails s"), I got this error message ...
2
votes
1answer
1k views

How to create a GEM_HOME for rvm?

I'm learning how to set up different versions of ruby with different versions of rails using rvm. Here's a link for the instructions http://beginrescueend.com/gemsets/basics/. It says Let's say, ...
1
vote
1answer
501 views

“Git: command not found” error while installing RVM on OS X

Working from my command line on Mac OS X Snow Leopard in directory /Users/michael, I did the installation line recommended by the RVM site: bash < <(curl -s ...
2
votes
2answers
2k views

How to install and use different versions of ruby?

I'm learning rails from different books that use different versions of both ruby and rails. Right now I have ruby 1.87 installed on my Mac OS X Snow Leopard (in /usr/bin), but need to also use ruby ...
4
votes
1answer
2k views

How do I set up Ruby + Thin server in Windows? [closed]

I need to setup the "Thin" server on Windows, but I'm running into some issues, anyone able to help?
2
votes
0answers
250 views

Are there any Google Chrome extensions for inserting Furigana over Kanji?

Are there any Google Chrome extensions or userscripts for automatically inserting Furigana characters over Kanji in web pages? Please don't suggest Furigana Injector, because it doesn't work and is ...
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
4answers
4k views

What is the simplest way to download a gem without installing rubygems?

I would like to download a gem without installing all the required gems for a given gem. Specifically for the Rails 3 gem. It has a lot of dependencies, and I need to install it on a closed server ...
1
vote
0answers
578 views

Installation on Linux & Win7: Aptana, PostgreSQL, Ruby, JQuery (WWW on Apache)

Basically I have 2 systems, where I want to develop (and use) my application: A Linux (Debian) system. This is my server. Here I have PostgreSQL (& phpPgAdmin), Apache, Ruby. Typically I use ...
1
vote
2answers
560 views

Rake, Rspec and Windows

If I try and run the simplest of rake rspec tests in my windows environment (which I have basically no experience in) I get the following error: >ruby "D:\Ruby191\bin\rake" test ...
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 ...
1
vote
1answer
4k views

Change the path for ruby and irb to 1.9.2 in OSX

I recently used Homebrew to install Ruby 1.9.2 on OSX. The binary for the new version seems to be in /usr/local/bin. When I type "ruby" (or "irb") in a terminal, I want the binaries corresponding to ...
1
vote
0answers
209 views

How do I make Gedit run a custom command when I save a certain type of file?

Can I tell Gedit to automatically run a command like slimrb -p foo.slim foo.html whenever I save a file ending in .slim?
3
votes
1answer
764 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 ...
5
votes
4answers
6k views

Errors when installing Ruby to Mac OSX Lion via RVM

I was trying to install the newest version of Ruby via RVM, after I upgraded my Mac to Lion and installed the new Xcode 4.1 from the App store. I get this error in the log: [2011-07-20 16:57:15] ...
2
votes
0answers
54 views

Customize netbeans rails module

The Netbeans rails plugin has a simple a project structure: However, I have encountered the following problems: I cant access config.ru file I cant access app/uploaders dir (carrierwave gem) ...
1
vote
1answer
596 views

Character encoding after shebang in shell scripts?

I came across some Ruby scripts on Github. The first line is the normal shebang (#!/usr/bin/ruby), but the second line is the following: # -*- coding: utf-8 -*- I didn't know this method of ...
0
votes
1answer
511 views

Why do I not have permissions to run this method?

I'm using a Ruby gem called IMGKit and when I use the gem's to_img method in the console I get this error: IMGKit::CommandFailedError: Command failed: /rubyprograms/search --format jpg ...
0
votes
1answer
572 views

Redcar Install through RVM

I am trying to install Redcar on Ubuntu using RVM. I have read countless articles about it and i still get this error message. I followed this article in particular. ...
3
votes
1answer
186 views

what does STOP service do in Windows?

I start my web server as web service on Windows XP. How it was done is described here My web server is coded in ruby/sinatra and I start it C:\Ruby187\bin\ruby c:\web\web2.rb. That code the service ...
1
vote
1answer
952 views

How to run script as a Windows XP service?

I want to run my ruby web server as a Windows XP service. Somebody can advice how to do that? I changed (removed the word ruby) the title so more people can find the answer. It will work for any ...
4
votes
3answers
574 views

finding geolocation from an ip address

How can I find a location such as city/state or country from an ip address? Is there a ruby gem or python module to do this? Or if there is a website which has an API.
2
votes
2answers
825 views

Create a local DNS TLD for development

I do a lot of web dev, mainly RoR and PHP, I've got a VMs which holds my dev environments and handling multiple clients on them is a pain. With PHP you just create a subdir, but with RoR it's a little ...
0
votes
1answer
942 views

How to install Ruby on RHEL 5.3

I am trying to install the latest Ruby on RHEL 5.3 with the following: [root@anjanb logs]# yum install ruby-full Repository engineering-update is listed more than once in the configuration Repository ...
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) ...
2
votes
1answer
2k views

Homebrew Mac OS X Installation

I have installed homebrew on my Mac, but no matter what brew command I run, I get: /usr/local/bin/brew:6:in `require': no such file to load -- pathname (LoadError) from /usr/local/bin/brew:6 I am ...
1
vote
1answer
2k views

Install Ruby on Unix platform without root permission

I'm working on a Unix platform on VNC viewer. Now I want to upgrade to Ruby version 1.9.2. I don't have root permissions. So is there any way by which I could install Ruby 1.9.2?
14
votes
3answers
15k views

how can I uninstall using homebrew?

Can I uninstall something I installed via homebrew using homebrew?
1
vote
2answers
4k views

Ruby/gem installation paths scattered all over, cause?

can you help me understand my ruby folder structure? I don't understand why my gems are scattered all over and why they aren't recognised commands. I'll explain how my installation looks like first: ...
1
vote
2answers
2k views

Updating to Ruby 1.9.2 on Windows

I have a Windows 7 64-bit computer with ruby 1.8.7 installed and want to update to 1.9.2. I installed 1.8.7 by downlooading and runing Ruby Installer . How do I update to ruby 1.9.2 so ruby 1.9.2 ...
1
vote
2answers
635 views

ImageMagick requirement for Paperclip plugin

The Ruby on Rails paperclip plugin says that I need to install ImageMagick in order to use Paperclip. I'm typically really bad at getting things installed and running, so I was wondering if anyone ...
3
votes
3answers
7k views

Pass cmd.exe arguments via a shortcut?

I'd like to create a shortcut to run cmd at a particular location with a few commands. I'm hoping from there I can work out how to make it a right click option to "Run my cmd commands here..." I've ...
0
votes
1answer
86 views

How do I make RubyGems install binaries to a different directory?

I'm on OS X (Snow Leopard) and all I want is for gem to put the binaries it installs into /usr/local/bin instead of /usr/bin. This doesn't seem like it should be hard, but my Google-Fu is failing me ...