Solved

request.raw_post

Posted on 2008-10-06
2
914 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

687 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