Radhames Brito wrote in post #949984:
>> The only interaction I want is from javascript to Rails. While the
>> params does seem to be grabbing the query string, it is always returning
>> the "-" in front.
>>
>
> Oh then you are doing it all wrong, you should be usign a getScript and
> let
> rails return a js.erb file that uses a partial to redraw part of the
> page.

That sounds like it's orthogonal to the OP's concern.  If the - is 
always there, then I guess the params hash is getting populated, just 
with the wrong data.

Anyway, any solution requiring js.erb is, almost by definition, "doing 
it all wrong".  js.erb should never be necessary in a well-written 
project: you shouldn't be dynamically generating source code.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to