Marnen Laibow-Koser wrote: > John Merlino wrote: >> Hey all, >> >> I would like to capture all the typical form elements that a user is >> authorized to change, such as input type text, radio, check and >> textarea,etc - all of these html elements - and actually capture in the >> database by index. When current_user modifies these values, if he/she is >> authorized, then, then the input field is updated in the database. Does >> anyone know a good way to store a list of all the form elements in a >> table so they could be updated as these fields are changed by users? > > This seems like a bad idea, but you haven't explained your use case > clearly enough to be certain. What are you really trying to accomplish > here? > >> >> Thanks for any response > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org
For example, when a user tries to edit a form element, such as a text input field, I want to capture who did in order to determine whether they are privileged to do it and if they are, when they make the change, I want to capture their user id and time in which it was updated. -- Posted via http://www.ruby-forum.com/. -- 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.