ruby-on-rails-7 Questions

4

Solved

I'm trying to use npm package 'tailwindcss-flip' in my Rails 7 app. The package docs have the following instructions: Install tailwindcss-flip package: Install using NPM npm install tailwindcss-f...
Generalization asked 27/3, 2022 at 21:36

2

Solved

In a new Rails 7.1.2 app, the following lines can be found in config/environments/production.rb: config.logger = ActiveSupport::Logger.new(STDOUT) .tap { |logger| logger.formatter = ::Logger::Form...
Capable asked 15/11, 2023 at 10:1

1

I'm trying to import a JS package hosted on a CDN using the new Rails 7 import maps feature. However, whenever my Rails project loads I get a CORS related error in this form: Access to script at 'h...
Storz asked 23/6, 2022 at 7:16

5

In my Rails 7 application, I'm trying to show a confirmation message when the user presses a "Delete" button. However, when the button is pressed, it's deleting the record straight away w...
Siloum asked 16/5, 2022 at 1:48

2

I have a Rails 7 application. After some development I see that Turbo (Hotwired) creates too many issues and I don't need it for this application. Is there any way to remove Turbo completely from a...
Professionalize asked 14/1, 2022 at 18:14

7

Solved

I'm working on getting a new Rails 7 project deployed to production (trying on both Heroku and Render.com) and am getting the following error during build: $ tailwindcss -i ./app/assets/stylesheets...

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

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

5

For a long time, Rails has provided a method: :post option in the link_to helper: when the option was given, Rails would intercept the click and issue a POST request, instead of the default GET req...
Ass asked 27/12, 2021 at 17:3

7

I'm trying to set up my rails project with tailwind, but none of the actual tailwind changes are showing up in the browser. In devtools the class is displayed, but it doesn't make any change in the...
Nguyen asked 12/1, 2022 at 16:54

4

Solved

I have a Rails 7 project using TailwindCSS deployed to Heroku that is not building tailwind.css during rake asset:precompile and I don't know why. When I try to access the application, it crashes w...
Uno asked 19/3, 2022 at 12:41

2

I am creating association pretty much identical with the Rails Guides Patient-Appointment-Physician data model. A user has many prospects through prospect_subscription. However, when trying to acce...

3

Hi I have this Company model with the following enum that works fine for rails < 7.1 class Company < ApplicationRecord enum auth_type: { password: 'password', magic_link: 'magic_link', g...
Careerist asked 9/10, 2023 at 16:21

2

I just started a new rails 7 project with TailwindCSS using the new rails new my-app --css tailwind syntax. Tailwind CSS is working properly. I wanted to add a navbar from tailwind elements, and I ...

8

Solved

running rake assets:precompile ends with the error. Can't find why it still requires sassc, sassc only was in project when migrated to sprockets 4 using Guide to upgrading from Sprockets 3.x to 4.x...

2

Solved

After updating my Rails application from Rails 6.0.1 to Rails 7.0.2.3 I am getting issue with the gem "paperclip", '~> 6.1.0' while using it in application is gives error: ActionView::...
Perlie asked 24/4, 2022 at 18:29

1

Solved

I made this stimulus controller just so I can get more insight into what events fire and when, this is the connect portion of the controller: connect() { console.log("controller connected&quo...
Rebane asked 2/2, 2024 at 17:44

3

First, I'm much more of a Rails back end person. The JS world today scares me. I know this is a super basic question, but I've racked my brain for a solid couple days trying to figure, this out. I ...

5

Newly generated Rails 7.0 with esbuild option errors out on startup. rails new [project name] --javascript=esbuild --css=tailwind On creating a new rails 7 project, I try to start the application ...
Madeira asked 25/12, 2021 at 18:52

4

Hey I'm new to turbo_streams and am stuck on why I'm getting this error. Properties partial: <div id="properties" data-action="map-marker-clicked@window->@mapmarker#mapMarkerC...

2

When upgrading to the latest version of rails, I'm experiencing the following error with passenger refusing to start. The application encountered the following error: You have already activated str...
Decorator asked 19/10, 2023 at 9:16

1

I am trying to add Markdown support in Rails 7.1.1 app. Redcarpet gem version is 3.6.0. I follow advice from this question: Using ERB in Markdown with Redcarpet My current code (in /config/initiali...
Cold asked 25/11, 2023 at 19:21

5

Playing around with Rails 7 and I don't understand why my custom CSS is not working. I built new rails app with flag for Bootstrap, which is working fine (CSS and JS, tested with bootstrap modal). ...
Nataline asked 28/2, 2022 at 20:44

4

I'm using Rails 7 with Tailwind and ran rails new myapp --css tailwind which created app/assets/stylesheets/application.tailwind.css How do you add a custom CSS file so not all our CSS is in this o...
Herniorrhaphy asked 2/3, 2022 at 17:19

0

I just upgraded an Engine from Rails 5 to Rails 7. This error started appearing at Rails 6.1.7.6, but I thought perhaps it might've been fixed in Rails 7. Here's the error I get when I run rspec An...
Twinscrew asked 25/8, 2023 at 18:3

© 2022 - 2025 — McMap. All rights reserved.