Questions tagged [ruby-on-rails-3]
Ruby on Rails is an open-source web development framework written in Ruby. Ruby on Rails follows the principle of convention over configuration, freeing you from having to re-invent things to stay productive. Use this tag only for Rails 3-specific questions, and also tag those questions [ruby-on-rails].
ruby-on-rails-3
55,945
questions
0
votes
0
answers
18
views
Can't activate jar-dependencies-0.3.10, already activated jar-dependencies-0.4.1
I'm getting this error.
can't activate jar-dependencies-0.3.10, already activated jar-dependencies-0.4.1
Please help me
My project has gem 'jar-dependencies', '0.4.1' but in my system it was ...
0
votes
0
answers
29
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
64
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: ->{ ...
0
votes
0
answers
91
views
Ruby on Rails giving error on gem install
Keep getting an error when installing rails on my PC. I know that I have the ruby and sqlite installed but I keep getting stuck on the min2. I ahve installed this on my mac and seemed ok. I also see ...
-1
votes
1
answer
21
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 ...
0
votes
0
answers
106
views
How to us a Tailwind/Html input with a rails form - for date picker
I want to replace my form.date_field for a Tailwind date picker, it's got nicer styling.
I have it working in the view, so know the supporting java script is fine.
It pops up and I can select a date, ...
1
vote
2
answers
95
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
0
answers
49
views
HTML to pdf conversion using wickedpdf with page count
I have html that i need to convert it to pdf using wickedpdf gem and
within html I have div
<div class="inner-section" style="page-break-after: always; padding-top: 40px;">
...
0
votes
0
answers
54
views
Rails rspec feature itegration testing for basic auhentication
class MenucardController < ApplicationController
http_basic_authenticate_with name: 'admin', password: 'password'
def index
@menu_items = CsvFileTest.find_each(batch_size: 10)
end
end
...
0
votes
1
answer
56
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: ...
0
votes
1
answer
51
views
SSL Configuration Issue: Website Redirects Too Many Times and CSRF Token Mismatch
I am hosting a Ruby on Rails application on an AWS EC2 instance running Ubuntu, utilizing Let's Encrypt for SSL. In my Nginx configuration (/etc/nginx/sites-available/example), the redirection from ...
-1
votes
2
answers
1k
views
How to fix permission error while install bundle for rails project on ubuntu?
Currently on Ubuntu 22.04 desktop version and wanted to run ruby on rails app.
Current ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
Rails version: Rails 7.1.2
I installed ...
0
votes
0
answers
41
views
Active Admin filters not displaying on screen but present in the html DOM
Filters in AA usually works smoothly. I did notice that when i override scoped_collection method, the whole filter sidebar tends to disappear from the screen but still loaded in the DOM.
I don't have ...
0
votes
1
answer
171
views
Why is the page title not not changing in a turbo-ios app
In a Ruby on Rails app, I am setting the title by the following code in the head tag
<title><%= @title %></title>
where @title is set in the controller action for each page. Running ...
0
votes
0
answers
73
views
Resolving 'net::ERR_BLOCKED_BY_CLIENT' Error After Upgrading Ruby to 3.2.2 and Rails to 7 with jsbundling Gem
When I upgraded Ruby from 2.7 to 3.2.2 and Rails from 6 to 7, I encountered this error:
GET https://js-agent.newrelic.com/nr-rum-1.248.0.min.js net::ERR_BLOCKED_BY_CLIENT
I have upgraded Webpack using ...