Code Monkey home page Code Monkey logo

Comments (3)

salex avatar salex commented on July 22, 2024

I'll just add that the console.log message does not show up. It's not being called.

from rails.

rafaelfranca avatar rafaelfranca commented on July 22, 2024

Nothing in that release might have broken how assets are loaded. Did you try to downgrade to check if it is really 7.1.3.2?

from rails.

salex avatar salex commented on July 22, 2024

The cuprit is me, I'll explain in a minute.

I created a new rails app using all the defaults + database and css tailwind.

  • I created a home controller with only index and show actions
  • Created a menubar with link buttons to the home and show actions and my flash div
  • Added the stimulus flashIt controller
  • Added flash.now.notice = "You are now showing something" to the show action

Clicking on the show button worked. (showed the flash message in the menubar). No load error.

The explanation is that I was toying with the idea or rewriting a 10 year old app from scratch. While I kept it up to date, it still had a lot of old stuff. Convoluted methods, poorly written CSS, etc.

The new app I created (actually several times!) skipped some stuff (jbuilder, action_text, etc) that I didn't think I needed.

Apparently I skipped something that didn't mix well with Stimulus. Before the Stimulus problem I had other problems I could not explain. It took a while to notice that if running bin/dev and I hovered over a link, I could see a query being executed in the console. I first thought it may of been something new, but it was actually doing queries for the link I was hovering over. Even saw errors in query that were not display.

That was the reason for trying new apps several times.

I have no earthly idea on what I skipped that would cause the problems I was seeing. Things like something redirecting to the root path, TURBO would render and add to the index versus replacing it.

I guess I won't try skipping stuff that I'm not sure where its linked into the Rails.

Sorry for the bad issue, I'll close it.

from rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.