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

0
votes
2answers
965 views

cron job not working

It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 ...
3
votes
1answer
1k 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 2....
3
votes
1answer
935 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

Amazon Opsworks RDS, EC2, Rails 3, Phusion - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql2::Error)

I'm really close to having a simple Rails app deployed on Amazon Opsworks - using an EC2 instance running Phusion Passenger, and an RDS instance for the database server (it runs mySQL). The app code ...
2
votes
1answer
771 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 ...
2
votes
1answer
618 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
vote
1answer
1k views

Rails startup script runs twice

I'm having some difficulties with a new installation of Ruby on Rails. I want to use my application with MySQL. Here's the problem: The server starts without a problem when I use the default ...
1
vote
1answer
163 views

Ruby on Rails with Apache Web server

We have a Ruby on Rails application with Webrick server that uses Apache web server and a php blog for the same ruby website running on the same RHEL server. I can access the Apache access log and ...
1
vote
1answer
138 views

Connect from Mac Rails app to MySQL running on Windows 7 machine?

I'm trying to connect my rails app running on my Mac to MySQL running on my Windows 7 machine. They are both on the same network at my house, and I can ping my Windows machine from my Mac. Trying to ...
1
vote
1answer
779 views

Rails + SSL error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I'm using Ubuntu. I'm having an issue connecting to another server in one of my http = Net::HTTP.new(uri.host, uri.port) calls. This seemed to be pretty helpful: OpenSSL::SSL::SSLError: SSL_connect ...
1
vote
1answer
212 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 ...
1
vote
1answer
626 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 ...
0
votes
1answer
78 views

how to access redmine which works on a specific port?

when I access Localhost a file management is installed there, Also I have installed redmine on localhost:3000, we have a network and people from other computers can access the domainname of this ...
0
votes
1answer
119 views

How to save printer-friendly version of Ruby on Rails (Redmine) app as HTML?

E.g. there is the issue list in Redmine. When I show print preview there only the table without headers will be shown and there will be a bit different style of the table (css for printer-friendly ...
0
votes
1answer
175 views

Snorby with PostgreSQL installation issue in Mac OS X 10.10.2 (Yosemite)

Trying to setup Snorby for Snort with PostgreSQL on Mac OS X 10.10.2 (Yosemite) Snort 2.9.7.2 GRE (Build 177) PostgreSQL 9.4.1 ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.1.0] ...
0
votes
1answer
295 views

how to monitor network/cpu/memory/disk usage by each Rails app

I run many Rails app on linode VPS. I want to charge my customers by their usage, Is there anyway to monitor each Rails app's usage? I need these information network/cpu/memory/disk usage.
0
votes
1answer
190 views

How to get all the users in xmpp / ejabber using ruby on rails?

I know how get users from console but i do not know how to write its Ruby code so I can get all the users in my website. Get all registered users: sudo ejabberdctl registered_users domain_name Get ...
0
votes
1answer
367 views

AWS free user tier - how to deploy first Rails app

I've signed up with Amazon Web Services free user tier. I'm a little overwhelmed with all the tools on offer. I've been deploying my apps recently to Heroku so familiar with using Git to deploy signs ...
0
votes
1answer
64 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 ...
0
votes
1answer
513 views

Ruby fog installation error

I can't figure out how to fix this error. I install libxml2 and nokogiri is also installed properly. Building native extensions. This could take a while... ERROR: Error installing fog: ERROR: ...
0
votes
1answer
33 views

RailsIntaller for Ubuntu?

Im an Ubuntu newb, and so far installing programs has been a major PITA for me. Just downloading Sumblime2 text editor in Ubuntu required some terminal commands that im not used to. As opposed on a ...
0
votes
1answer
853 views

Multiple domains pointing to single Rails app on VPS Hosting (Like Shopify)

Asking the same question Multiple domains pointing to single Heroku Rails app via nameservers displaying different content?, but I am on VPS hosting instead of Heroku. I want customers to be able to ...
0
votes
1answer
329 views

Autotest can't find growl? (Ruby 1.9.3, Rails 3.2.11)

Haven't seen any other errors like this. Autotest is complaining it can't find Growl even though it's installed. Tried uninstalling/reinstalling everything with sudo. Everything is up-to-date. This is ...
0
votes
1answer
552 views

How to install Linux on VMware with Windows 7 Premium Host

I have an ASUS laptop with 6 GB RAM, Windows 7 64-Bit m/c. I followed this to install VMware, Linux: Installing VM (with Ubuntu + RVM + Ruby + Rails) on my Windows 7 system VMware (which has been ...
0
votes
1answer
356 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. ...
0
votes
1answer
673 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 ...
0
votes
1answer
2k 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 ...
2
votes
0answers
23 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 C:\Documents...\Dropbox\...
1
vote
0answers
12 views

Access backend Node JS application from Rails + NGINX

So I have a NGINX Webserver forwarding connections from port 80 to my Rails application. The Rails application handles authentication and serves basic functionality and static pages. I have several ...
1
vote
0answers
50 views

Could not initialize MySQL client library in Justhost

I am trying to configure redmine in justhost. following link was used for configuration. Link: https://my.justhost.com/cgi/help/redmine I am getting error - Could not initialize MySQL client library. ...
1
vote
0answers
241 views

Nginx + Passenger not working — client requests hang until timeout

I'm running on an EC2 instance with Amazon Linux installed and Nginx was installed via passenger-install-nginx-module. The full install process followed was similar to this. The primary difference was ...
1
vote
0answers
532 views

Hardware concerns for optimal ruby on rails development on ubuntu machine

I've been developing dynamic web sites using ruby on rails on a 5 year old mac mini which has been great except that it takes too much time -- 15 minutes or so -- to run my simple test suites. I ...
1
vote
0answers
1k views

postgres: unable to install postgresql-contrib-9.1

My system version is Ubuntu 13.10 64bit. I encountered this problem by setting up PostgreSQL in a Rails app. First I ran rake db:migrate and it showed an error: -- enable_extension("hstore") rake ...
1
vote
0answers
119 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 ...
1
vote
0answers
718 views

-bash: __rvm_add_to_path: command not found

As soon as I log in to my server with ssh I get the message: Last login: Wed Jul 17 16:13:07 2013 from foo.bar.net -bash: __rvm_add_to_path: command not found How can I fix that problem? My website ...
1
vote
0answers
283 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
0answers
376 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' ...
1
vote
0answers
424 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 ...
0
votes
0answers
103 views

An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue

I have install ruby on rails on my fedora 23. and when i am trying to create application "rails new appnam", it shows the following erros. $ An error occurred while installing debug_inspector (0.0.2),...
0
votes
0answers
51 views

Can't connect to local MySQL server through socket - Fedora

I am a new Fedora user and I am installing ROR on my machine. But when I try to enter the following command rake db:create it shows the following errors. Can any one please tell me how can I solve ...
0
votes
0answers
8 views

Ruby on raills the system couldn't find path specifed

Open the Registry Editor(press + R, type regedit and hit Enter) . Navigate to HKCU\Software\Microsoft\Command Processor\AutoRun and clear the values. Also check HKLM\Software\Microsoft\Command ...
0
votes
0answers
17 views

Start unicorn server as www-data

i am running a RoR app with a unicorn and Nginx setup. Everything works fine so far. But right now i have the app in my home folder and run unicorn as $USER. I would like to change now the app ...
0
votes
0answers
15 views

installed font not working in ec2 in rails app

I have downloaded font by running wget http://www.fontsquirrel.com/fonts/download/amatic inside my ec2 instance. Then I created a .fonts director and unzipped those files inside it. Then I ls ....
0
votes
0answers
65 views

Deploying ruby app with Apache 2.4

I'm trying to run two different apps with Apache 2.4 and Passenger under OSX 10.10.5. Snorby(rails driven app) uses port 3000 and Ntopng( lua based - also uses port 3000) Have two virtual hosts for ...
0
votes
0answers
395 views

error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue

I'm in a linux environment where I do not have sudo or root access. I installed rubystack using bitnami. I'm using ruby 2.2.2 and rails 4.2.3. When I'm starting a new rails app using rails new ...
0
votes
0answers
34 views

Is it possible to use HTTP between a web server running on a macbook and an iPhone using only the USB cable (no WiFi)?

I am going to be flying a lot next week and I want to continue developing my application. It's a server-backed API hosted on rails. I'd like to use my macbook to host the rails, ruby, db environment ...
0
votes
0answers
1k views

rvm use responding with Unknown ruby interpreter version (do not know how to handle):

I have a number of Rails apps that I've inherited that use different Ruby versions. To make life easier I'm trying to use rvm. Whenever I fire off the rvm use command inside any of the directories I'm ...
0
votes
0answers
1k views

Removing or Uninstalling Ruby, Rails, and/or Gems from Mac OS X 10.9.4

I had some health issues and was away from my iMac for about 6-8 months. I’m not exactly sure which version of OS X was running when I stopped using it, but I had just installed Rails and was about ...
0
votes
0answers
594 views

Rails 2 and Ngnix: https pages can't load css or js (but will load graphics)

ADMISSION: i've posted this same question on stackoverflow, before realising it's probabaly better suited to superuser, but it kind of depends on the answer: If it turns out to be a problem in my ...
0
votes
0answers
49 views

SSl for a Ruby Website

How to install a SSl certificate for a Ruby website where in the same Linux web server PHP blog is running? Both the primary website(Ruby) "www.example.com" and Blog(php) blog.example.com are running ...