Previous/Next Record

Episode #449 by Teacher's Avatar David Kimura

Summary

In this episode, we'll explore the process of creating Previous and Next links for a record, but then refactor it to be more maintainable.
rails model view 9:54

Chapters

  • Introduction (0:00)
  • Some cool tricks (0:43)
  • Adding fake data (2:18)
  • Styling the Show view (3:03)
  • Method #1 - Controller (3:30)
  • Method #2 - Model (6:18)
  • Final thoughts and an alternative (7:45)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams