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

learn more… | top users | synonyms

1
vote
0answers
157 views

How can I get Homebrew and MAMP (Pro) to play nicely together?

I am using MAMP Pro for most of my local application development and am trying to install ruby , etc via homebrew however homebrew will give me the following warning: Warning: "config" scripts exist ...
1
vote
1answer
641 views

Issues compiling passenger for apache2 on CentOS

I am trying to install openproject on a CentOS 6.5 (Release 3 from OVH) following this tutorial but with mysql in place of postgresql. I'm nearly done but I can't seem to compile passenger for apache ...
0
votes
1answer
370 views

What should I make out of this message?

I am trying to set up the Ruby on Rails on my Mac OS X Maverick just to check whether I have Rails installed I typed rails --version and I got this as response ...
0
votes
0answers
48 views

Vagrantfile - is rvm in ~/.rvm/scripts/rvm or ~/.rvm/bin/rvm?

I'm still learning my way around some of the more hidden files in terminal and I was trying to setup a Vagrant box with rails via shell script provisioning, with some help from these links: ...
0
votes
0answers
198 views

How to install ruby tesseract on linux mint(after following instructions I keep getting a compilation error)

Hi I'm trying to install ruby tesseract on linux mint OS. I've installed tesseract and ruby teseract-ocr but every time I try I require the gem I get this compilation error: CompilationError: compile ...
0
votes
1answer
29 views

how to jump to table in rubymine 6/intellji rails model dependency diagram

I remember there was a keyboard shortcut we used back in the day.. any ideas? or at least what's the name of the action so that i can assign a custom keyboard shortcut in the rubymine key map ...
2
votes
1answer
314 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 ...
0
votes
1answer
74 views

ruby1.9.3 links to ruby1.9.1 in Debian Wheezy after install with aptitude

I have just attempted to install ruby1.9.3 with aptitude but for some odd reason it keeps symlinking /usr/bin/ruby1.9.3 to /usr/bin/ruby1.9.1. Here are the ruby version in /usr/bin: lrwxrwxrwx 1 ...
1
vote
1answer
185 views

OS X Automator Shell Script for custom search with special character not encoded with utf-8

I find a script here Mac OS X (Lion) Chrome: shortcut for "Search With Google" which shows how to do google search using shell script in OS X Automator. The original script is: open ...
4
votes
2answers
192 views

Ruby commands are turning off tty echo

After running Ruby scripts, almost 100% of the time, the bash command line will appear to be inactive, while in fact it's silently accepting my keystrokes without showing them to me. This has ...
0
votes
0answers
116 views

Correct way of setting Ruby2.1 as the go-to application when it referenced to/called via shell?

I have installed Ruby 2.1 on my headless Debian server (7.4) by downloading the source from https://www.ruby-lang.org/en/downloads/ and then running the routine of ./configure make make install ...
1
vote
1answer
74 views

how to run ruby app on startup

I'm trying to run a sinatra app on startup in linux mint. I'm using the startup applications preferences to add the path to the ruby file that I'm trying to execute: shotgun /path/to/file/file.rb ...
0
votes
0answers
73 views

Upstart spawned threads won't clean up

I have an upstart job which runs: exec su - pi -c 'cd /data/zeus_station/releases/20140217074914; export PORT=5100; ~/.rbenv/bin/rbenv exec bundle exec thin start -R config/config.ru -p 9000 >> ...
0
votes
0answers
86 views

Pow server - my site need port number for .dev

there, I am new to Ruby and trying to use Pow in my Mac. When I type MYSITE.dev/ in my browser, it always says "The connection was reset". But it works fine for MYSITE.dev:20559. It seems that I ...
2
votes
1answer
184 views

Redmine install on Apache2/Ubuntu 12.04 EC2 instance

Can someone point me to a guide or guides that explain how to get Redmine running on Ubuntu 12.04? From installing Ruby to setting up Passenger? I've tried a handful of times and have never been ...
0
votes
0answers
122 views

compass stopped working after installing old ruby

I was trying to get command-t to work in vim, and when troubleshooting it seemed like I needed to install an older ruby (1.8.7) than the one I had (2.0.0) I tried installing ruby 1.8.7 but got some ...
2
votes
1answer
612 views

bash vi mode: What does # -*- mode: ruby -*- # vi: set ft=ruby : mean?

I'm looking through some random code, and at the top of it, it says this: # -*- mode: ruby -*- # vi: set ft=ruby : What does this mean? I know it's a simple question, but I couldn't find it out ...
1
vote
1answer
70 views

Automating Craiglist

I would like to be able to quickly respond to craigslist ads even when I am asleep or away from my computer. Basically what a site like www.classifiedadresponder.com does, but my own way of doing it ...
1
vote
1answer
137 views

Issue installing gem

So I'm trying to install this gem but hitting an error. https://github.com/cgore/ruby-btce The actual README says to do a gem install, so I guess I didn't need to clone the git repo? Anyway, I had to ...
1
vote
2answers
3k views

RVM is not a function, selecting rubies with 'rvm use …' will not work

I am trying to install Discourse as explained here but the command # Use installed ruby as default rvm use 2.0.0 --default results in this: discourse@ubuntu:~$ rvm use 2.0.0 --default RVM is ...
2
votes
1answer
776 views

install gem for older ruby 1.8 on Mac OS X 10.9 Maverics

I installed osx-trash using the answer here but got the error: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot ...
0
votes
0answers
250 views

Opening a file in Aptana Studio 3 from command line

I am learning Ruby on Rails using Michael Hartl's railstutorials webcasts. He opens files from command line using Textmate. How can we open a file from command line using Aptana Studio? What is the ...
1
vote
1answer
455 views

yaml.h not found after installing libyaml

I have installed libyaml yet Ruby install can not find yaml.h. I do not have sudo permissions so everything must be done as a normal user. wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz ...
1
vote
2answers
318 views

What does the linux “mkdir bin lib lib/NAME test” command translate into in Windows?

I am working on a Ruby tutorial and it is having set up projects using the listed command. It is not quite clear to me what they are exactly doing with that command. Are they making a path ...
0
votes
1answer
50 views

Multiple web apps on a laptop friendly way

I have a large collection of mini web apps written in Rails and Sinatra which I constantly use. My objective is to host them in a laptop friendly way. Most of deployment articles I have seen are ...
2
votes
3answers
414 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
203 views

“which rails” works.. but “rails --version” doesn't.. how come?

This may be related to what i did here.. but when I type the command which rails I get /usr/bin/rails but when i type rails --version I get: ...
1
vote
0answers
88 views

How to Properly Use a Cloned Rails Project

Recently, I set up a new dev machine. To get it to seamlessly work with my other machine, I used Git to put my project on BitBucket. Then, I cloned it to my new machine. However, running rails s on ...
3
votes
1answer
75 views

How to execute Ruby scripts on Windows 7 with minimal technical effort?

I've written some Ruby scrappers which will be used by some non-technical guys. I want to make these Ruby scripts executable on Windows with minimal effort. What are my options beside installing Ruby? ...
2
votes
1answer
155 views

Syntax Highlighting in Adobe InDesign

Is there a way to get syntax highlighting for Ruby into InDesign? I found a few examples for how this might work with GREP and HTML, but for any other language you had to define every element yourself ...
0
votes
1answer
93 views

How do I avoid continual issues with multiple programs (git, ruby, python) and default network drive path problems?

I am not an advanced user. Windows 7 PC. Our network admin has a network drive (H: drive)that installs on restart.....which I do not have access to when not in the office (or is not available via ...
0
votes
1answer
145 views

Using ruby application in launchctl scripts

In OS X, I am trying to create a script invoked automatically by launchctl. This script will invoke ruby application (jabber-tee and terminal-notifier) installed with gem. Her is my python script. ...
0
votes
0answers
115 views

Cursor keys leave insert mode in irb in vi mode

I am using vi-mode in a ruby IRB by having a ~/.inputrc containing only the following line: set editing-mode vi Since I changed from ruby 1.8.7-p371 to ruby 1.9.3 and 2.0.0, IRB (and the rails ...
1
vote
0answers
175 views

I am having trouble using SASS/Compass on localhost in Fedora 18

I am attempting to use SASS/Compass in Fedora 18 on my localhost test server, located at: /var/www/html Ruby/gems and compass have already been installed. Now, I'm trying to create a test file and ...
0
votes
0answers
723 views

Launchd Exited with code: 1

I have been spending way too much time trying to figure this one out. My launchd job keeps giving me the error "Exited with code: 1". Here is the plist: <?xml version="1.0" encoding="UTF-8" ...
-1
votes
1answer
231 views

How to use each in rails to display values of an array [closed]

I have a @keyword variable which holds the string "cat dog mouse bird" I want to display the values of each word under a span element. My algorithm looks like <%= @keyword.split.each {|key| ...
0
votes
2answers
60 views

How can 2 or more instances of the same program to communicate in local network? [closed]

I want to create program which will be in use for few computers connected in local network. Basically the program aim is to keep track of all tables in a bar ( lets say ), which are reserved. When ...
0
votes
3answers
4k views

Can't run compass after install

This is a beginner mistake I am sure as I am new to terminal etc. I am trying to get compass working on my mac, I have already installed sass and got it working but when I try to install compass even ...
2
votes
3answers
546 views

Change Command Prompt width from the Command Line [duplicate]

Don't really know what more I can say really. That window captured below will simply not get any larger. Are there some settings somewhere that will allow me to resize it? See, this limited window ...
1
vote
2answers
752 views

Can't install gems with Ruby: “invalid byte sequence in UTF-8”

I'm using Mountain Lion. I've installed Ruby first with RVM, then with rbenv. I can assure it's running the latest one with which ruby, it correctly points to the one installed with rbenv. gem won't ...
1
vote
0answers
19 views

Storing web-development libraries locally and update them whenever you are connected to internet

I'm learning things on the web and pretty much have developed several websites. Internet in our country is a bit poor and slow so developing using ruby or node js is pretty much a pain in the ass ...
0
votes
2answers
216 views

How can I format Ruby arguments/hashes in Vim?

I'd like to be able to easily formatting Ruby code from within Vim. If I have a method with a hash argument foobar(foo: "FOO", bar: "BAR") How can I turn it into foobar( foo: "FOO", bar: ...
2
votes
1answer
403 views

Created box with vagrant as root, want to run as normal user

I ran vagrant init/up as root initially with one of my boxes, however, all of my other boxes are owned by a normal user, so every time I want to use the box as a regular user, I have to sudo and then ...
2
votes
0answers
250 views

`brew doctor` shows warning: “config” scripts exist outside your system or Homebrew directories

When I use brew doctor, I get following error. Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if ...
1
vote
1answer
565 views

Unable to install ruby on ubuntu 12.04

Hi i want to install ruby on my Ubuntu 12.04. I tried it with following command sudo apt-get install curl but it gives me following error. The hostname -f command returned: $1 Your system needs to ...
0
votes
1answer
284 views

How can I programmatically register a file with Redmine?

I'd like to add a file to a Redmine server without going through the graphical interface. I'm making the files available to the Redmine server by a separate svn checkout process, so I just need to be ...
1
vote
0answers
175 views

I am getting this error “Insecure world writable dir /Volumes/BOOTCAMP in path, mode 040777”

I tried the answer sudo chmod go-w in my /Volumes/BOOTCAMP but I'm still getting the warning It says Insecure world writable dir /Volumes/BOOTCAMP in PATH, mode 040777 and when I echo $PATH I get ...
0
votes
1answer
79 views

Why does apt-get dist-upgrade change /usr/bin/ruby to /etc/alternatives/ruby?

When I run an apt-get update, apt-get dist-upgrade, the location of /usr/bin/ruby changes from /usr/local/bin/ruby to /etc/alternatives/ruby. This ends up breaking several cron jobs until I remember ...
17
votes
2answers
2k views

Is there a git-like file system?

Git stores content uniquely in its repo based on the calculated hash of any file. Thus, if my directory has two copies of the same file somewhere inside it, git will only actually store it once. I ...
1
vote
1answer
310 views

How can I pipe the output of *all* entered shell commands into another? (e.g. pipe everything into 'lolcat')

Good Afternoon, (OS X user) I am specifically trying to pipe the output of every shell command I type into the ruby gem 'lolcat' (which makes the output to the terminal rainbow colored). Is there a ...