View Full Version : Rails URLs on Flash buttons
marilynn.fowler
09-23-2006, 11:47 AM
I have a Flash menu that is accessing a page that is dynamically generated by a Rails, a real estate database. Currently I have the buttons set up wth the following absolute URL provided by the back-end developer:
on release {
getURL("http://www.brownandco.com/property/open_houses");
}
However, the menu is not communicating properly and is appending a ".html" to the request, as well as dropping out the /property portion of the address. Is there a different way to access pages with this type of structure generated by Rails??
I tried asking at the Flash forum, with no luck.
softsea
02-23-2007, 02:25 PM
you need change the http header generated by a Rails.
class RSSController < ApplicationController
before_filter :set_xml_header
# action to create rss xml file, but have to change
# HTTP header before
def rss
end
def set_xml_header
@headers['Content-Type'] = 'text/xml; character=utf-8'
end
end
marilynn.fowler
02-23-2007, 11:00 PM
Thanks. I'm going to forward this to my Rails person. Since we couldn't figure it out in time, we switched to a javascript-based menu.
This will come in handy in the future.
Janet Kellman
07-08-2007, 03:32 PM
I have a Flash menu that is accessing a page that is dynamically generated by a Rails, a real estate database. Currently I have the buttons set up wth the following absolute URL provided by the back-end developer:
on release {
getURL("http://www.brownandco.com/property/open_houses");
}
However, the menu is not communicating properly and is appending a ".html" to the request, as well as dropping out the /property portion of the address. Is there a different way to access pages with this type of structure generated by Rails??
I tried asking at the Flash forum, with no luck.
keep in mind also use correct charset in meta http-equiv="Content-Type" field.
good luck
businessservice
08-28-2007, 03:56 PM
useful info thanks
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.