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.

Where Next?

Popular Pragmatic Bookshelf topics Top

telemachus
Python Testing With Pytest - Chapter 2, warnings for “unregistered custom marks” While running the smoke tests in Chapter 2, I get these...
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
ianwillie
Hello Brian, I have some problems with running the code in your book. I like the style of the book very much and I have learnt a lot as...
New
herminiotorres
Hi @Margaret , On page VII the book tells us the example and snippets will be all using Elixir version 1.11 But on page 3 almost the en...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
Charles
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
taguniversalmachine
It seems the second code snippet is missing the code to set the current_user: current_user: Accounts.get_user_by_session_token(session["...
New
EdBorn
Title: Agile Web Development with Rails 7: (page 70) I am running windows 11 pro with rails 7.0.3 and ruby 3.1.2p20 (2022-04-12 revision...
New
davetron5000
Hello faithful readers! If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New

Other popular topics Top

axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
New
PragmaticBookshelf
Programming Ruby is the most complete book on Ruby, covering both the language itself and the standard library as well as commonly used t...
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New
hilfordjames
There appears to have been an update that has changed the terminology for what has previously been known as the Taskbar Overflow - this h...
New

Sub Categories: