ruby-on-rails Questions
4
I'm a noob studying Ruby on Rails. I am trying to integrate my ruby on rails app to Quickbooks. I'm following the steps of this video. And I am stuck when I try to authenticate by pressing the &quo...
Candlepower asked 29/6, 2021 at 7:31
11
ActionCable doesn't work in production. Works well in development, but not in production.
Running Nginx with Puma on Ubuntu 14.04. I have checked that redis-server is up and running.
Rails -v 5.0...
Voiture asked 25/11, 2016 at 14:10
4
Solved
I'm using Resque workers to process job in a queue, I have a large number of jobs > 1M in a queue and have some of the jobs that I need to remove ( added by error). Crating the queue with the jobs ...
Wieldy asked 23/4, 2012 at 4:53
6
Solved
I want to make sure I don't have rounding issues when it comes to storing prices for products in a rails app.
What mysql datatype should I use, and what does it map to in rails?
I want decimal wi...
Overwind asked 21/2, 2011 at 23:52
4
Solved
I want to look at the full URL the HTTParty gem has constructed from my parameters, either before or after it is submitted, it doesn’t matter.
I would also be happy grabbing this from the response...
Brethren asked 13/5, 2015 at 16:31
10
Solved
In Devise, if I change user's password and after it gets updated in the db, the site immediately logs out the user. I don't want this behavior - how do i do that. please help.
Flan asked 24/11, 2010 at 8:29
4
Solved
I was trying to sort a particular hash by values. I came across a way using the method sort_by. But even though I call sort_by on a hash, it returns an array, i.e.:
a = {}
a[0] = "c"
a[1] = "b"
a[...
Portent asked 19/4, 2013 at 11:5
2
I am trying to create something that looks like this using ChartJS line graph. I've got the top gradient working as I want, I just cannot find a way to get the bottom gradient to change when my dat...
Phosphine asked 3/10, 2018 at 22:7
5
I have a file which looks like this
#app/services/account/authenticate/base.rb
module Account
module Authenticate
AuthenticateError = Class.new(StandardError)
class Base < ::Account::Base
...
Antilogism asked 30/7, 2019 at 17:48
21
I recently upgraded to Rails 5.1 from v4.3 and am now getting this error when running tests:
An error occurred while loading
./spec/controllers/admin/capacity_charges_controller_spec.rb.
Failure...
Kraul asked 16/11, 2017 at 2:52
3
Solved
I upgraded to Rails 7 and Ruby 3.1. While trying to run tests with rspec I got the error below. How can I fix it?
An error occurred while loading rails_helper.
Failure/Error: require File.expand_pa...
Gilford asked 27/12, 2021 at 20:40
6
Solved
Here I am trying to fetch data from MS-SQL Server 2008 to my Rails application on Ubuntu 10. But I am unable to install tiny_tds. I follow the step given at github. But no response. Please guide me...
Calculating asked 23/9, 2011 at 6:28
2
Solved
I tried to add a column to a table after a specific column in the table.
Here is what I did:
rails generate migration add_reaction_id_to_patient_allergies reaction_id: integer :after => 'patien...
Luke asked 18/3, 2013 at 16:19
5
Solved
I store all my app's data in seeds.rb locally. However, after I pushing everything to Heroku, the app works well, but without any data. I do not want to re-input the mass data again, so does anyone...
Antenna asked 23/4, 2014 at 1:49
12
Solved
In my application_controller, I have the following set to include the locale with all paths generated by url_for:
def default_url_options(options={})
{ :locale => I18n.locale }
end
My reso...
Weymouth asked 31/12, 2009 at 22:38
2
Solved
I'm using a Cloudfront distribution as a proxy for my Heroku server. Why? for these purposes.
Anyway, my app has a force ssl rule on it. When I go to my cloudfront url, the origin being my heroku ...
Buenrostro asked 15/7, 2014 at 7:2
3
Currently I'm trying to display .HEIC images in Rails 6. I'm using ActiveStorage ImageMagic to use variant to display jpg. Basically I'm trying to use
mogrify -format jpg myimage.heic
In the im...
Laurynlausanne asked 14/3, 2020 at 18:52
6
Solved
I am trying to create a 'normalized' copy of a string, to help reduce duplicate names in a database. The names contain many international characters (ie. accented letters), and I want to create a c...
Zacynthus asked 28/3, 2013 at 16:9
2
Solved
I'm doing a basic controller and trying to get data from the HTML with the tag value.
The problem is that the data is always empty
<div data-controller="selectable">
<div class=...
Communism asked 26/9, 2022 at 10:5
7
Solved
I'm trying to bundle install a rails project but I'm stuck...
when I try to run gem install psych all I get is this:
Building native extensions. This could take a while...
ERROR: Error installing ...
Bellabelladonna asked 20/2, 2013 at 17:55
3
Solved
A user has many comments, so I would like to have a factory user with a comment associated to it (user_with_comment):
factory :user, class: User do |t|
...
factory :user_with_comment do |t|
aft...
Aircraft asked 12/2, 2015 at 16:31
15
Solved
In OS X in rvm how do I check if openssl is configured properly?
I get the cannot load such file -- openssl (LoadError)
And I have tried everything in Rails 3 - no such file to load -- openssl with...
Splinter asked 13/2, 2013 at 2:29
3
Solved
I am using Rails 4.2.3 and ruby 2.2.1
I have written a scope in roles model as follows:
app/models/role.rb
scope :default, -> { find_by(default: true) }
Now when I run
> Role.default
#...
Style asked 9/7, 2015 at 22:44
5
I created a rails app use mysql database.
Now want to put them into docker container.
I am using docker, docker-machine, docker-compose.
My docker-compose.yml
db:
image: mysql
environment:
MYS...
Delve asked 10/11, 2015 at 2:3
6
Solved
I updated from ruby 2.7.1 to 3.1.1, then removed Gemfile.lock and ran bundle update (it's on a dev branch, so I can throw it away if this is a bad idea, I just wanted to see if it would work).
bund...
Dharna asked 20/2, 2022 at 5:50
© 2022 - 2024 — McMap. All rights reserved.