I''m using rjs to do a google maps mashup. Problem is that I''m
not
getting any response when I submit my query. According to firebug the
Content-Type is text/html which is where I''m guessing my problem is.
I''ve tried a few ways to force it to text/javascript including putting
this in my controller:
@headers[''Content-Type''] = ''text/javascript;
charset=utf-8''
When I do that, however, my page just shows up as the actual code
ie..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" >
<head>
<link rel="shortcut icon" href="/images/favicon.ico"
>
..snip..
Did I miss something simple? Happens on both lighttpd and webrick..
Thanks in advance..
--
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---