New Discussion

Notifications

You’re not receiving notifications from this thread.

Link To Current Page With Params Discussion

6
General

thsi episode is too easy!

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"}

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.

thanks for the information!

Great episode ! This is a really clean explanation of how to keep URLs dynamic in Rails while preserving existing params. Very useful for building filterable pages without overcomplicating the view logic.

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.