Solved

request.raw_post

Posted on 2008-10-06
2
906 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
ID: 22652801
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
ID: 22652952
Great, thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
A short film showing how OnPage and Connectwise integration works.

932 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

8 Experts available now in Live!

Get 1:1 Help Now