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.
160 questions
0 votes
1 answer
60 views
Direct cURL access to a Rails app, bypassing Passenger?
I have a server running an app (Redmine) on Rails, with Passenger, and I need to script access to the Redmine REST API (from the server itself - I don't need remote access). The problem is that ...
1 vote
0 answers
279 views
OpenSSL connection to an imap server over explicit port works, but fails on implicit port
I have a mail server to which I'm connecting from a ruby application using protocol IMAP. But I get an error in rails console: Loading dev environment (Rails 7.0.4) irb(main):001:0> @connection = ...
0 votes
2 answers
3k views
How to run Ruby on Rails on new MacBook Air M1?
I am running Ruby version 2.7.2 and I have been trying to run Ruby on Rails but nothing seems to work. I tried rvm, rbenv and now asdf but everytime I try to run rails server in an old project after ...
0 votes
0 answers
587 views
How to create a systemd service for Rails
I need to create a systemd service for starting rails on my machine. Usually for running it I give the command rails s. But now I'd like and need to create a service for it. How could I do? Thank you ...
0 votes
2 answers
17k 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 ...
1 vote
0 answers
336 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
0 answers
278 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
1 answer
202 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
1 answer
520 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
0 answers
158 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
0 answers
1k 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.14....
0 votes
1 answer
7k 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
0 answers
1k 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
1 answer
604 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
0 answers
211 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
3 answers
12k 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
1 answer
1k 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
1 answer
83 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
1 answer
676 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
1 answer
664 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
0 answers
887 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
4 answers
523 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 surprising:...
2 votes
1 answer
4k 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
1 answer
767 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
1 answer
650 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
1 answer
145 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
1 answer
140 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
1 answer
168 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
0 answers
363 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
1 answer
380 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
0 answers
782 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
0 answers
63 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
1 answer
1k 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
1 answer
1k 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
0 answers
138 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
1 answer
390 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
2 answers
480 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
0 answers
618 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
1 answer
435 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
1 answer
468 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 is ...
2 votes
1 answer
3k 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
1 answer
954 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
1 answer
1k 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
1 answer
637 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 ...
1 vote
0 answers
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
1 answer
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 votes
2 answers
502 views
Apache2 not starting, guess bad config file
this is the problem starting apache2: apache2 -k restart [Wed May 28 11:53:07 2014] [warn] NameVirtualHost *:80 has no VirtualHosts httpd not running, trying to start (98)Address already in use: ...
-1 votes
2 answers
82 views
Find particular file in particular directory
I want to find the particular file name in particular directory in ruby. I tried the following Dir.glob() file = Dir.glob("/home/prakash/Desktop/*.uploaded") output: /home/prakash/Desktop/abc....
1 vote
0 answers
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 ...
0 votes
1 answer
695 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 ...