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? Thanks for any response -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 responseBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.orgFor 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
John Merlino wrote: [...]> 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.So it sounds like it''s not really the HTML form elements you''re interested in, but the attributes of the object being edited. Right? If so, then don''t drag the HTML into it. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.