It seems like you are over complicating this. Why not just add an "Approved" field (or something similar) to the model?
You can then allow admins to set the Approved field to true. You can setup security around this field so that only admins can edit it. Within your application, you can then filter records based on the Approved/Not Approved flag as necessary. Eric On Apr 6, 3:27 pm, David Zhu <dzwestwindso...@gmail.com> wrote: > Hmm great explanation. I'm not that great at ror, so could u briefly > show me some sample Create/form code that stores the fields, and > transfers them to an admin? > > Do i need to create a whole new database for pending requests? > > Thanks > > On Apr 6, 6:24 pm, Frederick Cheung <frederick.che...@gmail.com> > wrote: > > > On Apr 6, 11:08 pm, David Zhu <dzwestwindso...@gmail.com> wrote:> Hey, > > > > I'm not sure how complex this really is, but i hope it isn't too > > > difficult for you guys to explain here > > > > My question is, is there a way to intercept a Submit action (for a > > > scaffold, etc) of a form, and take that submit action and present it > > > to an ADMIN user, where he/she can either finish submitting the form, > > > or ignore the request? > > > Well it should be relatively simple in the update or create actions to > > only go through with the change if the user is an admin. If the user > > isn't an admin then store the submitted parameters. One way of viewing > > might be to say that users never submit to the update or create > > actions - their forms only ever create change request objects which > > can then be reviewed by admins. > > > Fred > > > > Kind of a like a confirmation system.. > > > > Hopefully you guys can help me out, I'm not that good at ruby on > > > rails, but hopefully ill get better :) > > > > Thanks for your help! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.