Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Rails URLs on Flash buttons

View previous topic View next topic Go down 
AuthorMessage
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Rails URLs on Flash buttons Empty
PostSubject: Rails URLs on Flash buttons   Rails URLs on Flash buttons EmptyFri Jul 27, 2012 10:59 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.
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Rails URLs on Flash buttons Empty
PostSubject: Re: Rails URLs on Flash buttons   Rails URLs on Flash buttons EmptyFri Jul 27, 2012 10:59 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
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Rails URLs on Flash buttons Empty
PostSubject: Re: Rails URLs on Flash buttons   Rails URLs on Flash buttons EmptyFri Jul 27, 2012 10:59 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.
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Rails URLs on Flash buttons Empty
PostSubject: Re: Rails URLs on Flash buttons   Rails URLs on Flash buttons EmptyFri Jul 27, 2012 11:00 pm

Database wrote:
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
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Rails URLs on Flash buttons Empty
PostSubject: Re: Rails URLs on Flash buttons   Rails URLs on Flash buttons EmptyFri Jul 27, 2012 11:00 pm

useful info thanks
Back to top Go down
Sponsored content




Rails URLs on Flash buttons Empty
PostSubject: Re: Rails URLs on Flash buttons   Rails URLs on Flash buttons Empty

Back to top Go down
 

Rails URLs on Flash buttons

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» stylish buttons
» Ruby on rails vs. Php
» how ruby/rails work ?
» Toggling <div> Visibility in a Rails App
» Tracks (Ruby On Rails)

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Rails URLs on Flash buttons Edit-trash Useless :: Trash-