55,874 questions
-2
votes
2
answers
68
views
Deploy zip to AWS application
I have been asked to look at an old Ruby application that is currently deployed to AWS via CodeShip on successful build.
CodeShip is obviously gong out of service end of Jan 26 and I need to deploy ...
0
votes
0
answers
28
views
Trouble Configuring AWS S3 and CloudFront with Camaleon CMS
I am trying to configure AWS S3 and CloudFront to work with Camaleon CMS and have encountered several issues.
Documentation and CORS Configuration: I initially tried to follow a tutorial given in the ...
0
votes
0
answers
16
views
Rails CKEdior toolbar not showing any icon
I have recently upgraded rails version from 4 to 6.1.7.8, my ckeditor version is 4.3.0, its deployed on Heroku.
now ckeditor toolbar is not showing icons.
ckeditor toolbar screenshot
I Inspected the ...
0
votes
0
answers
40
views
Why do I get an 'ActiveRecord::NoDatabaseError' with Ruby 3.2.2 and MySQL?
Let me start off by saying that I'm not very well versed in Ruby (or MySQL for that matter).
I'm trying to spin up Sharetribe Go, which is written in Ruby. So far, I've encountered some issues but ...
0
votes
1
answer
43
views
How to query records by matching a parameter within the same record?
In my Rails application, I have a Project model with an associated Task model (Project has many tasks). Each Task has a field called parent_task_id that links it to a task from a previous version. ...
0
votes
1
answer
47
views
What could block carrierwave uploading to rails7 app on 'railsplayground' using passenger?
*** Updated and Closed ***
Turns out that I had to change the relative path in the uploader to the fully declared path for the server in which my app is running. Who would have thought?
*** closed *...
1
vote
0
answers
51
views
How to fix blocked because of a disallowed MIME type (“text/html”) in ruby on rails app(Render)? [duplicate]
**
I'm using hotwired/stimulus and importmap_tags for JavaScript in my Ruby on Rails app. In development, everything works fine, but after deploying to Render, my sales view and the product with ...
0
votes
1
answer
57
views
sidekiq concurrency with many threads
We use Sidekiq to process background jobs, such as this:
def process_order(id)
... do something
end
Sidekiq is set to 50-100 threads, so we've seen process_order run on the same id at the same time, ...
0
votes
1
answer
54
views
Prawn Gem - Print the textbox section dynamically after a table
I use prawn gem to generate a pdf file with tables and other sections. The text_box position are static and it is working as expected. Now I want the text_box below the table to be dynamic. Below is ...
0
votes
1
answer
161
views
Issue with recaptcha site verify API SSL handshake
I have recaptcha used on my site on multiple places, signup & CSF. Till the 16th of July, all requests were normal and responded in quick time. But since 16th July we started experiencing delays ...
0
votes
0
answers
57
views
How to install bzip2-ruby in mac with ARM?
I am setting up a ruby project and using followings:
ruby:2.7.5
There's an error while installing the bzip2-ruby gem mentioned below:
current directory: /Users/ssingh/.rvm/gems/ruby-2.7.5/gems/bzip2-...
0
votes
2
answers
165
views
Is it possible to add custom data in meta in papertrail only in the 'create' event
has_paper_trail meta:{
object: 'custom_data'
}
this is my code need to have a condition where we add meta only in case of create
i tried this
has_paper_trail meta: {
object: ->{ ...
-1
votes
1
answer
40
views
Devise Layout for Login
I create custom layout for admin and not using applicaiton.html.erb, I am using new layout admin.html.erb ,and I can import in any controller, and its working fine, but I need to use this for devise ...
1
vote
2
answers
134
views
is there a way to write this clean?
So i have a flag to disable and enable a feature. and will based on the variable it has to toggle the flags
flag_a, flag_b, are my two feature flags and the variable input string can be none, all,...
0
votes
1
answer
91
views
ImageKit works fine on local but doesn't work on heroku why?
puts "Uploading image #{@game_id}"
kit = IMGKit.new(@game_url, quality: 50)
image_data = kit.to_png
obj = S3.object(File.join(@bucket_path, "#{@game_id}.png"))
obj.put(body: ...