Topic: Approve


I need some help with simple rails app..

I have made a scaffold with name, message and when you click on the button I don't wan't that to show on the page before a Approve it ...
I wan't to approve everything before post

could someone help me..

Last edited by CicekH (2009-01-30 23:37:22)

Re: Approve

Add an approved (boolean) field that defaults to false to your model, and update your index (or whatever) method with :conditions => 'approved = 1'. Then you'll need to add admin-only views to approve posts.