170 Experience
1 Lesson Completed
0 Questions Solved


Posted in Link To Current Page With Params Discussion

edit: specifically if you're using a broadcast callback on your model to update a frame. The broadcast doesn't 'know' about the current request.

Posted in Link To Current Page With Params Discussion

one 'gotcha' on this.
If you're using turbo, then rails no longer seems able to use a hash to construct the url.
you get a rendering error like:

ActionView::Template::Error: No route matches {:tag=>"one"}

I'm new to rails 6, webpack, etc
It's working for me in my app and jquery is loaded (thanks for the intro @Chris)

However - although jquery works correctly in all my loaded js, I can't use it to experiment in the chrome console.

Presumably this is because webpacker is 'being a good citizen' and not polluting the global namespace with $

however - it's really annoying not to be able to test thigns in the console without jquery. How do I override the default and just make $ global?

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.