# Request.raw\_pos Problem

**URL:** <https://www.ruby-forum.com/t/request-raw-pos-problem/88534>\
**Category:** Ruby\
**Created:** [March 12, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/request-raw-pos-problem/88534 "2007-03-12T12:25:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pubclub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@pubclub](https://www.ruby-forum.com/u/pubclub)\
**Post date:** [March 12, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/request-raw-pos-problem/88534/1 "2007-03-12T12:25:23Z")

</div>

Hi people i have a very strange problem.

I am using a lifesearch function which you can place some text in.  
Only When i get the Post in the Controller the variable gives me this

placedtext= … The equal sign gets placed at the end of the  
variable.(FFS)

This is My Livesearch code which is placed in the view.

# Search:

&nbsp;\<%= text\_field\_tag :searchtext %\>

\<%= observe\_field(:searchtext,  
:frequency =\> 4.0,  
:update =\> :search\_hits,  
:loading =\> " Element.show(‘spinner’)",  
:complete =\> “Element.hide(‘spinner’)” ,  
:url =\> { :controller =\> “domain”, :action =\> “domain\_search” }) %\>

This is the code that gets the post variable so i can do stuff with it.

@entered\_text= request.raw\_post || request.query\_string (actually both  
give the same result)

When i do puts @entered\_text ic for example nerd4life.nl= instead of  
just nerd4life.nl

Gsub did not work an split functions also do not remove the = sign…  
:’(

I used this function before and stupid enough it did not do it like  
that(and i am sure it aint the drugs that i have been taking to ease the  
pain ).  
The only difference is i work on a Imac instead of Windows XP but i  
guess thats not the problem aswel… Hope someone can help me out, or  
i have to go back to a sumbit button again.

Greets

Vincent
