Re: submit_tag ?

DamnBigMan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-03-15T20:25:21Z

Yeah, I was hoping there was a way to embed or trigger a direct
assignment from the data provided in the form when they do a submit.

In the documentation there is a reference to "options" for submit_to
but it doesn''t elaborate in any way.  I was hoping maybe there was a
way to pass a direct assignment as an "option" or something similar.

Oh well.  Thanks though :)

On Mar 15, 2:14 pm, Nelson Hsu
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> DamnBig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> > I''m using the attr_protected macro.
>
> > On Mar 15, 1:39 pm, Nelson Hsu
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
>
> From the documentation:
>
> Attributes named in this macro are protected from mass-assignment, such
> as new(attributes) and attributes=(attributes). Their assignment will
> simply be ignored. Instead, you can use the direct writer methods to do
> assignment. This is meant to protect sensitive attributes from being
> overwritten by URL/form hackers.
>
> So basically, attr_protected was designed specifically to prevent what
> you want to do. :)
>
> Nelson
>
> --
> Posted viahttp://www.ruby-forum.com/.