Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rails]

The tag has no usage guidance.

-1
votes
0answers
36 views

'bundle install' says I'm using 2.3.3, but 'ruby -v' shows 2.3.1

I'm trying to run a sample ruby server as part of a heroku tutorial. I downloaded ruby 2.3.1 specifically since the gemfile requests that version, but whenever I try to run 'bundle install' I get this ...
0
votes
0answers
4 views

Rails app calling api server refuses connection when api server calls back

We have a temporary situation with our rails application, due to an architectural migration. This requires us to initiate an api request from our puma rails server to our goliath api server, which in ...
0
votes
1answer
399 views

windows 10 WSL ubuntu unable to ping anything

I cannot ping any website when I am using WSL for windows 10. I'm running Ubuntu 18.04 in WSL. --- google.com ping statistics --- 14 packets transmitted, 0 received, 100% packet loss, time 38567ms ...
0
votes
1answer
1k views

running curl command inside a rails application

I am trying to execute a curl command inside my rails application. My rails application simply creates a ticket and for that I have to enter some information. When person clicks on Save then it saves ...
0
votes
1answer
61 views

Excel or Rails, Capitalize first letter, change all caps to capitalized, but respect capitalization mid name

Given names like below: richard should be Richard RICHARD should be Richard richAnne should be RichAnne I'd rather this be done in excel, but my other option is using Rails.
0
votes
1answer
962 views

3.3V and 5V rail in modern PC

These days in ATX PSU these voltages come from a single rail and have fixed amount of current. Seems like they do not affect the PC functionality these days. I know that USB port use the 5V rail ...
0
votes
1answer
89 views

Is installing Rails via Debian APT package a best practice?

I've been recently reading the Debian website and found a page called Don't Break Debian (https://wiki.debian.org/DontBreakDebian) where they tell that it is not a best practice to install software ...
0
votes
1answer
279 views

How to run rails driven app (Snorby) on different port

Sorry for being such a newbie but is it possible to make rails driven app (Snorby) being started on port different than 3000? How to do this? I've changed the ports from 3000 to 9000 at snorby_config....
11
votes
1answer
3k views

Can't access rails server on VM from host

I have a rails server on virtual machine and I need to access localhost from host. I've tried both NAT (by port forwarding - port 80 and 3000 on the guest side) and bridged adapter but nothing seems ...
6
votes
1answer
4k views

Why can't nginx access puma socket on CentOS 7?

So I have a Ruby on Rails app in /var/www/ owned by nginx with 755 permissions. Said app is intended to be deployed via puma. Like so: rvmsudo -u nginx bundle exec puma -e production -d -b unix:///...
0
votes
1answer
2k views

Which version of rails should I install with ruby 2.0.0 installed?

Hi I am building a ROR development environment on a windows 7, I have Ruby version 2.0.0 and Gems version 2.2.2 installed. Which version of Rails should I install? I saw this on rubyonrails.org/...
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 ...
0
votes
1answer
42 views

Re-enable TextMate 2 alpha Rails 'rocketship' shortcut

After updating to the latest alpha version of TextMate 2, the control - l shortcut no longer inserts a rocketship (=>) Is this an option that can be re-enabled, is there another shortcut that does ...
3
votes
1answer
696 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: /System/Library/Frameworks/Ruby.framework/Versions/...
0
votes
1answer
42 views

Rails didn't install correctly, specifically the uninstaller

I've just installed Rails using railsinstaller.org for OS X, rails and ruby seem to be working OK (checked by running rails -v, ruby --version and ruby --help). But when it installed, I got an error ...
2
votes
0answers
234 views

Elastic beanstalk Rails - defaults to production environment even if I set staging environment

I am trying to bring up a staging instance of rails applciation using elastic beanstalk. I followed the documentation and did the following : eb init --environment staging eb start --environment ...
3
votes
2answers
4k views

Elastic beanstalk rails application with git source and deploy hooks

I want to setup Elastic Beanstalk for my existing rails application. I was successful in doing the sample foo app. These are the questions I have I need the deployment to happen from my git ...
1
vote
1answer
123 views

VPS set up to serve php and rails

I have a VPS with centOS that we currently use for serving php apps with apache. Now I also want to serve rails app from there. Either I can use phusion-passenger or I can do a separate unicorn and ...
1
vote
1answer
324 views

Gemfile template

I'm trying to modify the default gemfile template on debian, and it doesn't seem to be anywhere to be found. Is this found somewhere on the system called "Gemfile" or is it located in another ...
1
vote
1answer
2k views

Unable to start rails on port 80

I am trying to learn Linux better but currently only have very limited experience - so please excuse my ignorance in this matter. I am trying to start rails on port 80, and as another user by using ...
0
votes
1answer
169 views

Cannot find Ruby on Rails installed

I've managed to install Ruby and the gems install (rvm?) but now I'm stuck actually installing Ruby on Rails. Every time I execute, gem install rails Terminal says that it's fetching each file and ...
1
vote
0answers
440 views

can I remove imagemagick by deleting directories?

I posted this to StackOverflow, but probably belongs here. I'm on OSX Lion, trying to get back to basics so I can run RMagick in Rails 3.0, using rvm. When I tried to add the RMagick gem to Rails ...
0
votes
5answers
2k views

no gitignore file in new rails app

I created a new Rails app using version 3.0.1 (in order to follow along with a tutorial using 3.0.1), but it didn't create a gitignore file. If I create my own, what ending should I put on the file? ...
2
votes
1answer
387 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 ...
3
votes
1answer
2k 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, ...
9
votes
2answers
19k 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 1....
6
votes
4answers
17k 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 ...
2
votes
0answers
87 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) What ...
3
votes
1answer
2k views

git out of memory

I went to my file directory, did $ git init $ git add and then got fatal: Out of memory? mmap failed: Cannot allocate memory One folder is maybe 2GB big because it is full of images.. the rest are ...
0
votes
1answer
600 views

Error installing Rails 3.0.1 (File not found:lib)

I am trying to install rails 3.0.1 on ubuntu 10.10. I am getting this error towards the end when i execute this command sudo gem install rails --version 3.0.1 Installing ri documentation for rails-...
7
votes
6answers
4k views

Ubuntu in Virtualbox - WEBrick web server very slow when using local IP address

I'm using Ubuntu (Lucid Lynx) to learn Ruby On Rails. I'm running Ubuntu in VirtualBox (the host is Windows 7 Ultimate), using bridged networking. When I run my Rails app and point the browser at it ...
0
votes
3answers
5k views

How to install/update Ruby on Rails on Ubuntu 9.10?

I'm running Ubuntu 9.10. I am getting started with ruby on rails development and would like to make sure my system is up to date. This is what I've found out so far: $ which ruby /usr/bin/ruby $ ...