views:

76

answers:

3

I know that the RoR CRUD is very easy to use. But I want the generate program do something special that normal CRUD. I don't want "Delete" in my apps, all the record only can make as "delete" instead of actually delete. So, I want to add a column -- "status" automatically when the Create is generated, and I want to change the "Delete" behavior to "Make as delete". Can I do that? if yes, how can I do?

A: 

Maybe this -> http://activescaffold.com/ can help you, is like a super powered scaffold :)

ClaudioA
+2  A: 

Sounds like you want acts_as_paranoid

RyanWilcox
A: 

Yes, try acts_as_paranoid, or permanent_records, which I'm also a big fan of.

Cratchitimo