Displaying 1 result from an estimated 1 matches for "authorscontol".
2009 Oct 27
5
Re-tasking destroy contoller action...is this bad practice?
...#39;ve got an Author model in my Blog application and I
want my administrators to be able to disable authors. I don''t want to
delete authors because this would cause data integrity issues
(orphaned Author foreign key in the Post model). So my plan is to re-
task the destroy method of the AuthorsContoller to allow an
administrator to set a disabled_at timestamp on an Author instead of
actually deleting him.
What are the disadvantages to this design? One of the advantages to
this design that I see is that I don''t have to declare a new
controller method in my routes...it just fits into t...