Questions tagged [ruby-on-rails]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

“bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory” error when trying to install something

I apologize, I don't have much experience with Linux. So I have ruby installed on my machine and I'm trying to install rails. When I do gem install rails I get a proper response Successfully installed ...
0
votes
0answers
25 views

Gem versions and bundle update

I have an application (redmine) which was installed with a set of gems including rack-2.0.7. This version of the gem was recently announced as having a vulnerability. So in the redmine's root I did: ...
0
votes
0answers
620 views

Gem::Ext::BuildError: ERROR: Failed to build gem native extension. on installing therubyracer 0.12.2 with native extensions

I tried all the method given like uninstall libv8 and then install therubyracer, nothing work for me ,can anyone help me to solve this issue? $ sudo gem install therubyracer -v '0.12.2' --source '...
0
votes
0answers
35 views

1438 illegal hardware instruction rails s

Here's the issue: Unable to start an existing Rails project after upgrading to Mac 10.15.1. The terminal shows: SEGV received in SEGV handler [1] 1438 illegal hardware instruction rails s Notes: ...
0
votes
0answers
54 views

Rails server doesn't start anymore

I worked on a ruby on rails project for quite some time. Today I wanted to continue but if I try to start the rails server, I just get the following output: Traceback (most recent call last): 22: ...
1
vote
0answers
182 views

Cannot run rails new myapp -d postgresql

I was following the tutorial here: https://gorails.com/setup/windows/10 I reached the part where I run to create my app and it starts then I run into this error: create create README.md ...
0
votes
0answers
25 views

Aptana Studio 3 Linux terminal

I'm learning Ruby on Rails and have been using Visual Studio Code. VSCode has a built in terminal which works with the Windows Subsystem for Linux. Is it possible to use the Windows Subsystem for ...
0
votes
0answers
68 views

Ruby Mine debugger doesnt start of error SIGABRT

I am facing an error when trying to execute a rails app in debug mode. I have an error which is saying: Process finished with exit code 134 (interrupted by signal 6: SIGABRT) I've seen that I don't ...
0
votes
0answers
30 views

Nginx with ip_hash load balancing. In some cases requests are sent to another server, ignoring user ip

I have 3 vm's (load balancer, app1-server and app2-server). The backend is rails with nginx+passenger. I use nginx as load balancer with ip_hash request distributing algorithm. So I expect that all ...
0
votes
0answers
88 views

spree install on Debian 10

I want to install spree e-commerce software on Debian 10, and I get this error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.5.0/gems/sassc-...
0
votes
1answer
34 views

Server stopped but port 3000 still being used and localhost accessible

So I have a rails server running on port 3000. I shutdown my rails server, but it still shows up on my processes like this: ps -ef | grep rails 501 49901 34171 0 1:36PM ttys000 0:00.00 grep --...
0
votes
1answer
159 views

Uncaught TypeError: ReactIs.isMemo is not a function

I upgraded to React version 16.0.1 and it throws the error "Uncaught TypeError: ReactIs.isMemo is not a function". I also upgraded react-redux v6.0.0
1
vote
0answers
67 views

Trouble uninstalling gem bundler

I'm running the following software: Ruby 2.3.3 Rails 4.2.10 Gem bundle 1.17.3 & 1.12.5 Git keeps defaulting to 1.17.3 but rails is only compatible with 1.12.5. I cannot uninstall 1.17.3 to use 1....
1
vote
0answers
465 views

How can I install bundler for a specific ruby version?

I'm creating a rails app and when I try to run rake db:migrate I get this error: LoadError: cannot load such file -- bundler/setup I'm using rbenv and ruby version 2.5.1 in a mac with OS Mojave 10....
0
votes
1answer
2k views

Why does Chrome's “EditThisCookie” extension, seem to list some cookies as 'session' with an expiry date?

An answer here View / See / Read cookies in Google Chrome suggested this extension. (I have since found it's not a good extension and very problematic, as i've commented there, but anyhow) Why does ...
1
vote
0answers
704 views

MSFconsole not starting from terminal after installing Metasploit Community

MSFconsole is not starting from terminal. It was just working yesterday. The only thing that has changed is that I have installed Metasploit Community. Here's the error: Traceback (most recent call ...
0
votes
1answer
205 views

Systemd service fails on boot with rbenv environment error

Having some issues with a service that is meant to boot a rails app. The ruby install is managed via rbenv, the service file is this: [Unit] Description=evr server boot After=network.target After=...
1
vote
0answers
99 views

How do troubleshoot AWS Beanstalk deployment of a React on Rails app?

Hi all and thanks for reading! I'm brand new to AWS Elastic Beanstalk, and I'm attempting to deploy my Rails app, which has a React frontend I'm deploying via the Elastic Beanstalk dashboard, and ...
6
votes
3answers
9k views

Rails Server Gem Load Error - SQlite3

Let me start out with, I have searched and read all questions asked similar to my issue and have tried all suggestions. Here's some of the technology I'm using, if it helps: Initially, High Sierra on ...
0
votes
1answer
588 views

How to setup Ruby on Rails static web pages behind Nginx reverse proxy

Summary of question is what is the method to setup Nginx to serve static pages for site, and how and where is this Nginx server installed (is it supposed to be on same server where Ruby on Rails ...
0
votes
1answer
30 views

Is there a difference running Ruby on Rails on Ubuntu locally vs Ubuntu on Virtual Machine?

More or less - as in the topic. I'm planning to format my PC, currently I have dual-boot with Win 7/Ubuntu 16.04. For my daily job I'm working mainly with Windows software but have quite a lot of ...
0
votes
1answer
553 views

Is it possible to get Visual Studio Code IDE debugging of apps on Rails 5.2 to work?

Expected behavior In VS Code (or other IDE); add break point to first line of [app root]/ config/application.rb; require_relative 'boot' start debug. debugger should stop at breakpoint Actual ...
1
vote
1answer
564 views

Ruby version 2.3.3 Gemfile 2.3.0 (Sprockets Update)

I'm a newbie at Ruby on Rails. I'm trying to update the Gemfile but it keeps giving me this error: "Your Ruby version is 2.3.3, but your Gemfile specified 2.3.0" The reason I'm trying to update the ...
3
votes
0answers
622 views

How to configure Let's encrypt for a server with openvpn

I want to make my Rails app SSL available, but I failed to configure it. I'm using Let's encrypt for SSL and the server is using Nginx. There is also openvpn service that is installed by openvpn-...
2
votes
4answers
456 views

Nginx passenger 5.1.11 error: Required key 'ust_router_address' is missing

After installing the latest stable for passenger-enterprise, my server faced an unknown error: Required key 'ust_router_address' is missing (-1: Unknown error) The effect on the server was ...
2
votes
1answer
3k views

Rails “Cannot read termcap database;”

Whenever I start my rails console I'm running into two problems: I'm getting these cryptic errors messages. My control-L isn't working (it's intended use it to clear the screen) Console output: $ ...
1
vote
1answer
418 views

FPS drop in FFMPEG streaming processes to FB from production server

I have made a rails app that can stream live videos to facebook rtmp server and deployed it on AWS. I have used nginx as web server. The major problem that I am encountering after viewing log files of ...
0
votes
1answer
521 views

Trying To Setup a Rails 5 App With Apache and Passenger on CentOS 6.8

I'm quite new, so this is what I've done: I worked on my Rails app, which works fine if I run it with rails s command, but I want to access to my app from other devices in my Lan (or even when I'm ...
0
votes
1answer
86 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.
1
vote
1answer
102 views

How do I get Rails to work with a newer version of Ruby on Windows 7?

I installed Ruby 2.3.1, then I installed Ruby on Rails. The Rails install gives me an older version ruby.exe (2.2.4). The Rails installer also added the older version of Ruby to the head of my ...
0
votes
1answer
80 views

How to update the version of gems of a locally cloned heroku ruby on rails repository using bundle?

I wanted to know how to update the gems on a heroku ruby on rails repository that cloned in to a local machine.Can we use bundle to update the gems like puma.I've used bundle install after cloning the ...
0
votes
0answers
84 views

Can't access website on local IP address, but loads with public IP

There is something weird going on since tonight. I have a raspberry pi running a ruby on rails server. When I run my local IP address on my phone there is no problem, and the website loads normally. ...
0
votes
1answer
216 views

How to change Rails 4.2.4 app config to use Production db instead of Development

database.yml default: &default adapter: postgresql encoding: unicode pool: 5 development: <<: *default database: pgtest_development test: <<: *default database: ...
0
votes
0answers
620 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 ...
1
vote
0answers
50 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
1answer
978 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 ...
1
vote
1answer
800 views

Domain name not working in AWS [duplicate]

I had previously hosted my domain in a different instance in a different aws account but for some reason I had to delete that aws account and create a new one. I am now trying to host my domain in ...
1
vote
0answers
115 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. ...
0
votes
1answer
316 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....
0
votes
2answers
406 views

OS X 10.10.3: Apache(2.4.12) + Passenger 5.0.10 from Homebrew doesn't work

Trying to configure Snorby(ruby app) to work with Apache/2.4.12 and Passenger 5.0.10. -- I've successfully installed from homebrew apache and passenger. brew install httpd24 passenger -- Created /...
1
vote
0answers
524 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 ...
0
votes
1answer
295 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
434 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] Here ...
2
votes
1answer
2k views

How can I upgrade the Ruby version on Passenger?

How can I uprgade the Ruby version installed on my passenger module for Apache? I on Debian 7 and it's running Ruby 1.9.1 but I want 2.2.0
1
vote
1answer
688 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.
-1
votes
1answer
529 views

Chrome always opens http://localhost:3000/user_sessions/new on launch

Every time I launch Chrome on my Mac, it opens a tab with http://localhost:3000/user_sessions/new. I guess this has something to do with Ruby on Rails and perhaps a test server that a much more server-...
0
votes
1answer
453 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
0answers
2k 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 ...
1
vote
0answers
1k 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 ...
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/...