Questions tagged [rails]

35 questions
36
votes
4 answers

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.9 for a different rails application. Can anyone…
Michael
  • 685
14
votes
1 answer

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 to work. In both cases I was able to access port…
13
votes
4 answers

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 which currently has no ruby/rake/rails software. Any…
Daniel
  • 1,152
11
votes
2 answers

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 is the result when I try ping google.com I am using…
9
votes
1 answer

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:///var/www/my_app/tmp/sockets/my_app.socket The…
Pori
  • 373
7
votes
6 answers

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 using localhost:3000, the app responds…
3
votes
1 answer

"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…
abbood
  • 1,354
3
votes
2 answers

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 repository and not from my local path where I am deploying.…
3
votes
1 answer

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, for example, that you are testing two versions of a…
Michael
  • 685
3
votes
0 answers

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 should I do? How do I customize this plugin?
puchu
  • 1,992
3
votes
1 answer

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 very small. What can be the problem here?
mtay
  • 31
2
votes
0 answers

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 staging After this, I checked that the…
2
votes
1 answer

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 Could not find gem 'sqlite3 (>= 0)' in any of the gem…
Michael
  • 685
2
votes
2 answers

How do I fix GitLab's Web IDE after update from 17.2.9 to 17.5.1?

After upgrading GitLab-ee, Docker, Omnibus from 17.2.9 to 17.3.6 and finally to 17.5.1 when on a file in my repo in GitLab and I click on Edit -> Open in Web IDE (vscode_web_ide) I am forwarded he 500 error page. This behavior was not present in…
antman1p
  • 151
2
votes
2 answers

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 but which computer components use 3.3V? I am…
1
2 3