I want one record in my table to be undeletable by a user. I guess/know
i can achieve this by writing code in my controller and model to only
present the user with reocords which can be deleted but im wondering if
there are any magic rails methods that can do this in a concrete way?
background: Im writing a todolist which has two tables, tasks and
projects whih have a standard has_many relationship. ie. a project has
When a user creates a task they specify whihc project they want to add
If a task is just a one off and not aprt of any project the user can
specify “No project” in teh project dropdown. this in fact is a project
but just using it to create the illusion! this is the record i dont want
the user to be able to delete.