Go Back   CodingForums.com > :: Server side development > Ruby & Ruby On Rails

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-23-2006, 11:47 AM   PM User | #1
marilynn.fowler
Regular Coder

 
Join Date: Aug 2002
Location: San Francisco
Posts: 442
Thanks: 19
Thanked 15 Times in 15 Posts
marilynn.fowler is an unknown quantity at this point
Rails URLs on Flash buttons

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.
__________________
Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx
marilynn.fowler is offline   Reply With Quote
Old 02-23-2007, 02:25 PM   PM User | #2
softsea
New to the CF scene

 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
softsea is an unknown quantity at this point
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
softsea is offline   Reply With Quote
Old 02-23-2007, 11:00 PM   PM User | #3
marilynn.fowler
Regular Coder

 
Join Date: Aug 2002
Location: San Francisco
Posts: 442
Thanks: 19
Thanked 15 Times in 15 Posts
marilynn.fowler is an unknown quantity at this point
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.
__________________
Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx
marilynn.fowler is offline   Reply With Quote
Old 07-08-2007, 03:32 PM   PM User | #4
Janet Kellman
New to the CF scene

 
Join Date: Jul 2007
Location: USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Janet Kellman is an unknown quantity at this point
Quote:
Originally Posted by marilynn.fowler View Post
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
Janet Kellman is offline   Reply With Quote
Old 08-28-2007, 03:56 PM   PM User | #5
businessservice
New to the CF scene

 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
businessservice is an unknown quantity at this point
useful info thanks
businessservice is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:36 AM.


Advertisement
Log in to turn off these ads.