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

learn more… | top users | synonyms

0
votes
0answers
23 views

trying to gem install t, problems with certificate

i'm trying to install this project on OS X 10.6.8. i'm following the installation instructions which say to first add the certificate with the command gem cert --add <(curl -Ls ...
0
votes
0answers
32 views

After Reinstall of Rails, Cannot Run `rails server`

On my main dev computer, I had had ruby installed from a ppa. I decided to reinstall it with rvm for consistency between computers. To uninstall my current environment, I ran sudo apt-get remove ...
0
votes
3answers
259 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
94 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
58 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
63 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? ...
1
vote
1answer
118 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
65 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
119 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
69 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 ...
0
votes
0answers
158 views

Redmine installation in cpanel. Error installing a gem named pg

I am trying to install redmine . I am using cpanel. I know cpanel wont support rails 3 which latest cpanel uses. So i downgraded my rails version and also i am trying to install redmine 1.4.3 which is ...
1
vote
0answers
119 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
320 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" ...
0
votes
0answers
177 views

Can't install pg gem on mac os x Lion

Im using Mac OS X 10.7.4 Trying to install pg gem to work with PostgreSQL. Typing: sudo gem install pg Got This answer: Building native extensions. This could take a while... ERROR: Error ...
-1
votes
1answer
186 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
0answers
45 views

Is there are any way to expose file on VPN client to public access through VPN?

I built a site using Ruby On Rails and deployed it on hetzner's VPS. My home-stationed computer got some files on hard drives and I need to be them exposed to public access. The PC has no public IP, ...
0
votes
2answers
57 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
2k 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
205 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
1answer
364 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
18 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
136 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
255 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
218 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 ...
0
votes
0answers
122 views

Problems installing ruby-gem pg

I'm trying to install pg through gem, but I have problems doing so. Others seem to have similar issues but none of what I found on the internet helps in my case. Here is what's happening. I try to ...
1
vote
1answer
458 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
211 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
129 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
69 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 ...
15
votes
2answers
1k 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 ...
0
votes
1answer
191 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 ...
0
votes
1answer
67 views

OSX 10.8.4 RVM install troubles with Network Users

I'm trying to install ruby 1.9 as the system default for all users of our mac machines. I've installed RVM using a "local" user account and everything seems to be working fine. I'm able to run the ...
0
votes
0answers
54 views

Can gitlab be installed with Cherokee web server?

I've looked all over and can't figure out you could use Cherokee instead of Apache or Nginx for gitlab. I'd rather not run multiple webservers (and imagine that they could conflict anyway). I'm giving ...
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 ...
0
votes
0answers
41 views

NewRelic Server Monitoring Agent

I am running a ruby on rails stack and I have quite a few ruby processes: 5 unicorns processes (1 master, 4 workers), 1 delayed job worker, and some continuous others tasks done with rake. But ...
1
vote
2answers
192 views

How to add a linux environment variable for different language (PHP or RUBY)

I would like to add a linux environment variable for my differents applications written in PHP and Ruby. Its goal is to differntiate between 'production' and 'development' linux environment. How to ...
2
votes
0answers
198 views

Can I install some ruby gem on a standard OS X user?

I have a Admin user for serious stuff and a Standard user for daily tasks, including front-end development. On the Admin user, I can install Brew, RVM, Middleman etc. But on the Stardard user, where I ...
2
votes
1answer
1k views

How do I use Sublime Text as the OS editor in Mac OS X?

How do I set Sublime Text as the editor for git commits in Mac OS X? In my .zshrc I have: export EDITOR='subl -w' But, if I do: bundle open devise I get the error: Could not run 'subl -w ...
1
vote
2answers
589 views

Installing Vagrant alongside RVM isntalled Ruby

How do I install vagrant alongside a specific version of ruby installed using RVM? I have both 1.8.7 and 1.9.3p429 installed. After using RVM to set my default to 1.9.3 I no longer have vagrant ...
0
votes
2answers
383 views

Why do I get a permission error installing Ruby 1.9.3 with RVM?

I need to install a newer version of Ruby than 1.8.7. I already managed to install Homebrew and RVM, but this is what happens when I try to install Ruby. aldaman:~ Alex$ rvm install 1.9.3 mkdir: ...
0
votes
1answer
57 views

Ruby and RVM: Unexpected version number

I am using osx 10.8.4 and has brew installed. I followed the ruby/rvm installation instruction here: http://octopress.org/docs/setup/rvm/ rvm install 1.9.3 rvm use 1.9.3 rvm rubygems latest It ran ...
1
vote
0answers
44 views

Is Textmate like Ruby Markers “#=>” in notepad++ available?

I use Notepad++ to write Ruby code. Now sometimes to test some Ruby features I used to go IRB to see how that works. Can I get the same flavor in Notepad++ itself,like Textmate editor as below? x = ...
1
vote
1answer
143 views

Use Ruby with no-root user in Gentoo

I am just started to update my Gitlab on Gentoo server (4.2 > 5.0). For new version Gitlab need to use Ruby with user 'git'. # check ruby version for git user ( 1.9 required!! ) # gitlab shell ...
1
vote
0answers
176 views

How do I run WEBrick as an upstart job?

I need to get WEBrick (basically a Rails web server) to work using upstart, but cannot figure out what should I write in script. The following gives me an error: chdir /rails-app exec su -s /bin/sh ...
1
vote
1answer
76 views

Define extra `$PATH` for either Passenger or nginx

I have a server with nginx and Passenger serving a Ruby on Rails app. It uses Bundler. Somewhere in this stack, the $PATH gets set to /var/www/APPNAME/shared/bundle/ruby/1.8/bin/. This directory ...
1
vote
1answer
202 views

Can't run 'rails' inside Tmux session in Terminal

I just tried rails inside a tmux session in iTerm2 and it returns as -bash: /usr/bin/rails: /usr/bin/ruby: bad interpreter: No such file or directory I can run rails outside of tmux . I am using ...
0
votes
1answer
333 views

Forward port from guest to host

How can I forward port from Guest (OS on virtual box) to Host (my actual machine)? Guest - Windows 7 Host - Ubuntu 12.10 On my host, I run a web-server on port 3000. I want to be able to open a ...
1
vote
2answers
591 views

when trying to install the watir or watir-webdriver gem on Windows 7 via cygwin, getting long C stack trace with mentions of “W32 socket” issues

When running: $ gem install watir on Windows 7 (cygwin), I get this ERROR: Error installing watir: ERROR: Failed to build gem native extension. /usr/bin/ruby.exe extconf.rb checking for ffi.h... ...
0
votes
1answer
180 views

Uninstalled Ruby.Frameworks on Mac OS X 10.8

In an attempt to create a clean Ruby slate for myself, I uninstalled RVM, rbenv (yeah, I had both installed, whoops), Gem, Bundler, and the pre-installed version of Ruby. I didn't realize the chaos ...
0
votes
3answers
574 views

How can I run a Ruby project found on Github?

I want to run a project from github. Here is the link. I used following command to download the project and it done successfully. $ git clone git://github.com/cheeyeo/Amazon-SNS-Ruby.git But I ...