I want to produce google maps KML files which are baiscally XML files
with a KML extention. I''m using restful routes and respond_to. The
best way I''ve found is to use
respond_to do |format|
format.kml { render :action => "kml" }
will render a kml.rxml template I have but really I want to have
action.rxml rendered for kml files.
Is there are way to acheive this, or add an extra extension like
action.kml.rxml that can be picked up ?
Should I be using register_template_handler("kml", ???) and specify
whichever existing class handles the rxml template handling and use
action.rkml for my templates ?
Any pointers would be really helpful.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---