On Feb 28, 10:21 am, Gerardo Argiz <[email protected]> wrote: > What about security with this kind of implementation, are they secure ? > What should you do in order to create safer applications ? > Im not sure I understand your question. I am not attempting to go around the current security I have in place. What am I missing?
> > > > > > On Mon, Feb 27, 2012 at 7:16 PM, Vell <[email protected]> wrote: > > > On Feb 27, 4:59 pm, Javier Quarite <[email protected]> wrote: > > > On Mon, Feb 27, 2012 at 4:52 PM, Vell <[email protected]> wrote: > > > > > Thanks for the quick response. That does give me a little more clarity > > > > but I guess my question was how do I define my variable with a value > > > > that is in params? When I do alert($("#params")) I get a response of > > > > object Object. When I do alert($(form.serialize())), I seem to get > > > > most of the params values except for the one that I want. It also > > > > doesn't look like its in an array so I can't chose the element that I > > > > want. Granted I am new to jquery and don't fully understand > > > > serialization and a great many other things. I believe the first alert > > > > is telling me that I can get to the entire params object using an id > > > > of params. But how do I get to the value within it to be able to > > > > specify my data variable in my $.ajax() statement? Sorry If I am not > > > > making much sense... > > > > First of all, does #params is html? or you just put it there? > > > This is something I just stuck into the alert. I did not define any > > html tags with an id of params. > > > > maybe if you just put something like > > > > console.log($(form.serialize())); > > When I refresh after adding this line to my .js file I get the values > > that are in the form that is displyed. > > example: > > utf8=%E2%9C%93&_method=put&authenticity_token=nOiekdY47fbFAHWD1rIG5rA > > %2FAjBC9HD8qU2Z%2BAvh9 > > ... > > What I don't see is the values that were passed in the URL which is > > what I am looking to capture. > > > > and see what you're getting. (in chrome hit f12 and go to console, in > > > firefox use firebug) > > > > params is a hash of all the data you are sending, its handled by rails > > not > > > as an html object > > > > Javier Q. > > > -- > > 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. -- 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.

