ruby-on-rails Questions
9
Solved
I've already spent half the day trying to debug a Heroku error where I can't push code to my staging server because of a slug compilation error:
Compiled slug size: 320.5MB is too large (max is 30...
Marela asked 12/5, 2015 at 19:30
4
Solved
I have a Ruby on Rails (Rails 3.2.14 and ruby 1.9.3) application that uploads 2 files to a remote SFTP server. The SFTP code is:
require 'net/sftp'
Rails.logger.info("Creating SFTP connection")
ur...
Weanling asked 10/9, 2013 at 11:58
9
I am a developing a Ruby On Rails app using Rails 4.2.6. I am using Turbolinks alongside jquery.turbolinks (sorry I could'nt post the links to those elements as I am a newbie on the site). My probl...
Achaean asked 8/4, 2016 at 10:46
5
Solved
I'm making a big change in my system, so I changed one of my main tables into a STI, and create subclasses to implement the specific behavior.
class MainProcess < ApplicationRecord
end
class P...
Ruminant asked 15/8, 2019 at 3:8
5
Solved
I have the gem devise-jwt installed. I can perform a login request, and receive an Authorization token in return, but when I try to access a secured endpoint, I receive the message: No verification...
Etti asked 20/11, 2020 at 4:51
7
Solved
I have the following code in a Rails controller:
flash.now[:notice] = 'Successfully checked in'
redirect_to check_in_path
Then in the /check_in view:
<p id="notice"><%= notice %><...
Milstone asked 20/3, 2013 at 20:33
9
Solved
I'm having a stack level too deep error using Ruby 1.8.7 with Rails
3.0.4 and with the rails console I performed the following commands.
leo%>rails console
Loading development environment (Rail...
Bidet asked 26/3, 2011 at 23:16
3
Solved
I am a developer and I need to run my ruby app at port 5000, but always I try to run my app I get:
Address already in use - bind(2) (Errno::EADDRINUSE)
I know that the easiest way for solving this...
Cabinda asked 24/5, 2022 at 20:51
7
Solved
I created a GIT repo, locally. I now see a bunch of files i rather ignore for GIT check-in. This brings me to the question: is there any default .gitignore for Rails? Any best practices?
I think o...
Hamelin asked 8/3, 2012 at 10:43
3
Solved
I recently updated my application to Rails 7.1 and the development server seems to have stopped logging error backtraces.
Example of the logs from a broken page:
Started GET "/coffees-subscrip...
Fourchette asked 6/12, 2023 at 22:33
3
Solved
How to construct URI object with query arguments by passing hash?
I can generate query with:
URI::HTTPS.build(host: 'example.com', query: "a=#{hash[:a]}, b=#{[hash:b]}")
which generates
https:...
Farcy asked 21/10, 2015 at 10:45
2
Solved
I'm trying to get down and dirty with DevOps and I'm running into a health check request timed out failure. The problem is my Elastic Load Balancer sends a health check to my EC2 instance and gets ...
Dorset asked 7/6, 2017 at 5:9
3
Solved
In my application we have few test cases which are configured with GitHub workflow,Even I do have only space related changes on file but still getting below error. Not sure why my specs are still f...
Kenn asked 19/10, 2021 at 14:40
5
Solved
I installed rvm with rails, from the official website of RVM, I specified the command suggested by the tutorial.
When the installation my system has rails 4.0.0, rvm 01/23/12, ruby 2.0.0, bundler g...
Homovec asked 25/10, 2013 at 17:25
8
Solved
MY QUESTION
What are some surefire steps I can take to 100% get this working?
I would need real instructions, not one liner answers or vague conceptual descriptions of the process.
Let's get to th...
Maxilliped asked 21/2, 2013 at 14:15
4
Solved
So I decided to add an url attr_accessor to ActiveStorage::Attachment objects.
In development the patch holds for a while until it seems to "have been lost". Meaning it works for few minutes, then...
Acrimonious asked 11/3, 2019 at 20:17
10
Solved
I'm having difficulties updating RubyGems from version 1.1.1 to newest. I've tried the following:
gem update
Result:
Updating installed gems
Bulk updating Gem source index for: http://gems...
Pentimento asked 23/12, 2009 at 17:32
6
Solved
how can i detect browser type and its version in Rails. I want to put check on the version of specific browser and if its not required browser version than ask user to upgrade it.. i use below spec...
Mitzimitzie asked 26/4, 2011 at 8:37
5
Solved
I'm trying to find the sqlite database file that rails creates.
Sorry if this is a dumb question but which folder is this file stored in?
I've looked in all of the folders in my Rails project a...
Haustorium asked 26/5, 2009 at 23:51
4
Solved
I'm trying to create an array of IP addresses so that when the application is ran Rack-Attack can identify from the set of IP addresses that are allowed to access the application. So what I have do...
Embarkation asked 28/5, 2014 at 14:56
5
The following error
You have already activated strscan 3.0.1, but your Gemfile requires strscan 3.0.3.
Since strscan is a default gem, you can either remove your dependency on it or try updating t...
Cartel asked 14/5, 2022 at 16:17
3
Solved
After deploying a new rails app to Heroku I'm getting a NoMethodError. Everything works fine locally. I'm unsure how to and where to add the method.
I'm new to ruby (coding in general) and it seem...
Olshausen asked 25/7, 2019 at 8:37
2
I'm getting started with Hotwire and Turbo in Rails 6 and have an issue with Turbo not replacing my turbo-frame. I'm receiving the following error message: Response has no matching <turbo-frame ...
Declaratory asked 25/10, 2021 at 17:50
18
I get the error:
Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.
but all gems were successfuly installed:
gem 'ruby-debug-ide'
g...
Availability asked 9/3, 2016 at 19:19
4
I got stuck on this and for sure it's easy, but I just cannot find the solution in the docs.
I have some tree structure and the child where clause that I have to filter with an "exists" sub query:...
Dissatisfaction asked 7/5, 2014 at 8:26
© 2022 - 2024 — McMap. All rights reserved.