readonly?

Episode #426 by Teacher's Avatar David Kimura

Summary

In this episode, we look at making records read-only and also creating an override functionality where we can force the record to save. We'll also look at error handling when a record update is made to a read-only record.
rails model 9:43

Chapters

  • Introduction (0:00)
  • App overview (0:53)
  • the readonly? method (1:18)
  • Handling issues with readonly? (3:02)
  • Creating a controller#action for publishing (3:26)
  • Bypassing the readonly? (6:10)
  • Error Handling Read-only records (8:10)
  • Final thoughts (9:13)
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