Solved

request.raw_post

Posted on 2008-10-06
2
905 Views
Last Modified: 2013-11-13
Hi, this is the last post on this AJAX example  http://www.railshosting.org/#live_searching  - thanks rails gurus.

What exactly does the request.raw_post value give you?  I can't seem to find any documentation on it (probably looking in the wrong place).  The docs and wikis I've seen seem to imply that you would say something like

with => 'myVal=' + encodeURI .........

and then access params[:myVal] in the controller.  What does the raw_post value contain?  Does it just default to the value of the control your observing?  Any disadvantages to using it?

Thanks!

A
0
Comment
Question by:ARACK04
2 Comments
 
LVL 14

Accepted Solution

by:
wesgarrison earned 500 total points
Comment Utility
If you want to see the value of something, just raise it:
raise request.raw_post.inspect

Or, log it:
logger.debug request.raw_post

That said, the Rails documentation link for raw_post is here:
http://api.rubyonrails.com/classes/ActionController/AbstractRequest.html#M000818

I normally do the :with because I like to name the parameter, so I'm not exactly sure what raw_post contains.
0
 

Author Comment

by:ARACK04
Comment Utility
Great, thanks!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now