jdsutherland

jdsutherland

Modern Front-End Development for Rails B7: pg 71 javascript_packs_tag

We’re going to add it to the layout file app/layouts/application.html.erb by adding <%= javascript_packs_tag(“venue_display”) %> to the header right below the other pack calls.

It looks like this should be:

    <%= javascript_packs_with_chunks_tag(
          'venue_display',
          'data-turbolinks-track': 'reload') %>

Marked As Solved

noelrappin

noelrappin

Author of Modern Front-End Development for Rails

Depends on what beta version of Webpacker you are using – I think we included a note in the changes at the front to that effect.

I also just sent this out to reviewers, it’ll help.

As Noel has been reviewing the book’s code, he’s realized that there are some breaking changes in different beta versions of Webpacker, and also that it’s easier than he thought to wind up with the wrong version. If you are trying to follow along with the code in the book, please keep in mind the following.

Each individual directory in the book’s downloaded code should work as is, but if you are trying to keep up with the code yourself, you should use Webpacker version 6.0.0.beta.5 – beta 6 has a big breaking change that is not reflected in the book text yet.

However, please note that because of an issue in how the Webpacker team has released betas, if you specify the version in your Gemfile, you must use the exact version, and not use the ~> syntax. If you use ~> you’ll get an earlier, incorrect version (specifically, you’ll get 6.0.0.pre.2, which is older).

This should all be cleared up by the time the book is released for good, but we thought it might help you as you review the book.

“”

Where Next?

Popular Pragmatic Bookshelf topics Top

jimmykiang
This test is broken right out of the box… — FAIL: TestAgent (7.82s) agent_test.go:77: Error Trace: agent_test.go:77 agent_test.go:...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
AleksandrKudashkin
On the page xv there is an instruction to run bin/setup from the main folder. I downloaded the source code today (12/03/21) and can’t see...
New
patoncrispy
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
adamwoolhether
I’m not quite sure what’s going on here, but I’m unable to have to containers successfully complete the Readiness/Liveness checks. I’m im...
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
adamwoolhether
Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
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
dachristenson
I’ve got to the end of Ch. 11, and the app runs, with all tabs displaying what they should – at first. After switching around between St...
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
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
New
AstonJ
I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: The Ser...
New
New
rustkas
Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
First poster: bot
The overengineered Solution to my Pigeon Problem. TL;DR: I built a wifi-equipped water gun to shoot the pigeons on my balcony, controlle...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
PragmaticBookshelf
Author Spotlight: Peter Ullrich @PJUllrich Data is at the core of every business, but it is useless if nobody can access and analyze ...
New

Sub Categories: