Questions tagged [rails]

Ruby on Rails Web application framework

Web application framework optimized for sustainable programming productivity, allows writing sound code

131 questions
14
votes
7 answers

How do I set up Ruby on Rails?

I am interested in setting up a Ruby on Rails environment on my 10.10 laptop. Is there anything special I need to keep in mind for installation (i.e. that could be new or unique to 10.10)? Are there any suggested walkthroughs that I could follow…
rifferte
  • 696
13
votes
2 answers

Why is it so difficult to setup Ruby on Rails on Ubuntu?

I've spent a few hours this morning trying to setup Rails on a fresh instance of Ubuntu and I noticed that the process is incredibly more convoluted than on Windows. On Windows I go to rubyinstaller.org, run the executable (I was specifically…
13
votes
2 answers

rails & libpq-dev nasty dependencies

I don't know if this question belongs here, but I'll take a shot. Hi. I'm running ubuntu 11.10 dual-boot with windows vista on my machine. On Ubuntu, I've installed RVM, rails gem, & PostgreSQL (the postgres server, client, & other packages like…
PatrixCR
  • 375
11
votes
1 answer

Update ImageMagick Ubuntu

I would like to update my version of ImageMagick. I originally installed ImageMagick with... sudo apt-get imagemagick Current Version: myapp$ convert -version Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org Copyright:…
MicFin
  • 223
11
votes
4 answers

How to set default to ruby 2.1.2?

I have ruby 1.9.3 and 2.1.2. When I open the terminal by default it uses ruby 1.9.3 but I want to use ruby 2.1.2. How can I set ruby 2.1.2 to be default?
Rasool
  • 381
10
votes
4 answers

Opening multiple terminal tabs and running command

I need to open multiple terminal tabs, give them titles, go to a directory, and make each tab run a command. I am new to Linux and shell scripting, after searching online and checking some solutions, I made this script (EDITED based on answers…
Brary
  • 200
9
votes
2 answers

How to access the Ruby Command line in ubuntu 14.04?

I have Installed Ruby On Rails of version 2.1.3p242 on my system. But I can't findout the ruby command line. I have searched but not found. I have try to to check through man ruby : Show some details man rail : "See 'man 7 undocumented' for help…
Nishant
  • 211
8
votes
1 answer

Can't install Rails on Ubuntu 16.04

i'm noob. This is my problem when i try. Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. current directory:…
8
votes
2 answers

How can I get gedit ready for programming in Ruby and Ruby on Rails?

I'd like to know which gedit plugins I could install to make programming for Ruby and Ruby on Rails easier?
vhbsouza
  • 448
8
votes
2 answers

How to get /usr/bin/env ruby to point to the correct ruby environment?

So I was making a cgi ruby script and had the following at the top of the script file: #!/usr/bin/env ruby require 'rubygems' require 'action_pack' require 'cgi' After a couple of hours of not getting "/usr/bin/env: ruby: No such file or…
Nona
  • 263
6
votes
4 answers

Can I run Rails and PHP servers from same machine?

I have a Ubuntu box 10.04 that already has a LAMP stack configured on it. I would like to play around with Rails on this machine as well. Is there a way I can install Rails without messing up the PHP stuff? Maybe have it default to the PHP server…
JD Isaacks
  • 5,497
6
votes
2 answers

Tracking memory process wise on Ubuntu

I have an rails 3 application with 100-200 daily unique visitors. The total memory consumed on the server(Ubuntu) is around 1.5-2 GB. I want to know how much memory is used by each process. What are the best tools to track memory used by different…
Pankaj
6
votes
1 answer

How do I get tab completion to work with 'rake'?

When I try to use tab completion with rake, only files are suggested: $ rails test-app | grep -v create; cd test-app $ rake app/ db/ lib/ public/ README test/ vendor/ config/ doc/ log/ Rakefile …
ændrük
  • 78,496
6
votes
3 answers

The program 'rails' is currently not installed

I have installed Ubuntu 12.04 on VirtualBox. I installed rvm, ruby and rails following this tutorial. But when I restart, I am getting this error: The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install…
Karlis
  • 213
6
votes
2 answers

Why did port 3000 suddenly start getting used by PPP? How to disable?

I run a rails development environment, which runs a server I can access at localhost:3000. I was doing this again today, and went to restart the webserver and it started timing out. After some time I ran nmap localhost, and realised that 'ppp' is…
Jason O'Neil
  • 1,878
1
2 3
8 9