Questions tagged [ruby-on-rails]

Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.

0 votes
0 answers
4 views

ActionView::Template::Error: can't dump File

Recently we had the error while upgrading flipper gem Removes:dalli_store. Use Rails' official:mem_cache_store instead. https://guides.rubyonrails.org/caching_with_rails.html. So we changed cache ...
user avatar
0 votes
0 answers
9 views

Create multiple records for middle table in active admin

I have 2 tables of users and publishers and I have a middle table user_publishers. I have added this middle table in active admin and all is working fine. I have added the select2 plugin so I can ...
user avatar
  • 6,733
0 votes
0 answers
7 views

Rails 5 Upgrade: No such middleware to insert after: ActiveRecord::QueryCache (RuntimeError)

I am upgrading an app from Rails 4.2 to Rails 5.0 in development. App worked properly before the upgrade. I have gone through the basic upgrade steps (updating Ruby, updating Rails and related steps). ...
user avatar
  • 75
0 votes
0 answers
11 views

How to set flash messages in a stimulus reflex model update method

I'm working on a RoR app with stimulusReflex, and i want to implement a flash notice message for the update method i code. I have trouble finding the right path to implement this feature. Development ...
user avatar
  • 1
0 votes
1 answer
13 views

Active Admin: Is it possible to add an href to an f.input hint string?

I am trying to add an external link to an active admin form input hint form do |f| f.input :catalog_icon, hint: "Use a font-awesome icon class name, e.g. 'fas fa-star'."\ " ...
user avatar
0 votes
1 answer
26 views

Ruby On Rails - Form Select info from database

I have this line of code: <%= f.select(:state, :id, Location.all.collect { |l| [ l.location, l.id] }, {:class => "form-select"}) %> but it keeps throwing a: no implicit conversion ...
user avatar
  • 15
-1 votes
1 answer
30 views

Refactoring an API request on Rails

I have a rails worker using redis/sidekiq where I send some data to an API (Active Campaign), so I normally use all the http configurations to send data. I want to have it nice and clean, so it's part ...
user avatar
  • 360
0 votes
2 answers
28 views

How to align multiple flex boxes on top of each other?

I have the following UI: And the code for the UI looks like this: <% @list.each do |gift| %> <div style="display:flex; gap:120px; position:relative; right:...
user avatar
1 vote
1 answer
28 views

Formula for calculating user experience

I would like (without using a gem) to create a level and experience point system for my users. When creating his account, he starts level 0 with 0 experience points. To reach level 1 he will need 10 ...
user avatar
0 votes
2 answers
28 views

How to use create method in Active Record Query in a has many through relationship?

I have reviews ,users and airlines this is how to association is set up class Airline < ApplicationRecord has_many :reviews has_many :users,through: :reviews end class Review < ...
user avatar
-1 votes
0 answers
18 views

PG::ConnectionBad: could not connect to server:

i am following a course and after i generated a database with the cmd "rails generate scaffold User name:string email:string" i was trying to use the cmd "rails db:migrate" but i ...
user avatar
0 votes
0 answers
7 views

google analytics api v4 chaining multiple metrics query

I would like to pull datas from GA and improve theses querys by chaining filters and dimensions (if it's possible) Total of each unique event (by month and label) for an user like : start_date = 1....
user avatar
  • 561
0 votes
1 answer
21 views

<p> tag not being rendered properly in erb file

I have a list like so [ {"name": "ryan", "age": "12", "gender":"male" }, ] And I have code to render each value in ...
user avatar
0 votes
0 answers
9 views

Jekyll sitemap not being generated on Github Pages, but generates locally

Running bundle exec jekyll serve on my local machine builds the site, and I can find the sitemap normally at localhost:4000/sitemap.xml (meaning it is definitely inside the _site directory). However, ...
user avatar
  • 7
-1 votes
0 answers
23 views

Database Problems with Rails [closed]

Terminal Screenshot of Errors I was following a long to a YouTube on how to incorporate bootstrap to a new rails project. I followed exactly how he was doing it and then when I went to create a ...
user avatar

15 30 50 per page
1
2 3 4 5
22220