AleksandrKudashkin

AleksandrKudashkin

Modern Front-End Development for Rails: B7 not sure about the pathway

First of all, learned a lot after completing the first 3 chapters. Love the explanations. Thanks!

Generally, not sure what is the path to follow when you want to program along the way. I took the turbo/01 and just followed along.

But then, say in Chapter 3 when we did the show/hide button on the Favorites section, it works perfectly until you add a new favorite to the section. Then it just hides the first item in the list.

Also, if I click on Edit inside the Favorites section, that does not show the editing form but instead just removes the concert from the favorites section (only visually) with a message in JS Console “Response has no matching element”

I believe I need to do some fixing myself, but would be happy to know if there is a recommended way for those folks who want to start at some point and code along the way.

Marked As Solved

noelrappin

noelrappin

Author of Modern Front-End Development for Rails

It should work all the way through, anything that doesn’t work all the way through is a bug or should be called out in the text as not quite working yet.

Actually that show/hide thing not showing new favorites is a bug that I didn’t notice and actually wind up fixing later in the book, but probably should just make correct in the earlier code.

Similarly on the Edit inside the Favorites, I think I get rid of that a little later when we make favorites have a different partial than regular concerts.

Thanks! Glad you are enjoying it.

Popular Pragmatic topics Top

kuroneko
Whilst the author has been careful to provide exact results for the tests elsewhere in the book (such as surds with the transformation te...
New
johnp
Hi Brian, Looks like the api for tinydb has changed a little. Noticed while working on chapter 7 that the .purge() call to the db throws...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
jskubick
I think I might have found a problem involving SwitchCompat, thumbTint, and trackTint. As entered, the SwitchCompat changes color to hol...
New
brunogirin
When trying to run tox in parallel as explained on page 151, I got the following error: tox: error: argument -p/–parallel: expected one...
New
oaklandgit
Hi, I completed chapter 6 but am getting the following error when running: thread 'main' panicked at 'Failed to load texture: IoError(O...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
tkhobbes
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New

Other popular topics Top

AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New

Latest in PragProg

View all threads ❯