On Apr 6, 11:08 pm, David Zhu <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to