Tig wrote:
> Hi,
> 
> I'm working on a rails/google maps app, where makers on the map show
> 'places'. I would like to be able to put a link into each marker's
> infowindow that will take the user to the 'show' action for that place
> (ie. /places/[place_id]), and am looking for ways to output the
> appropriate url so it can be incorporated into my /public/javascripts/
> map.js file. I'm using json to output the latititude, longitude, name
> etc of each place to the map...is there a way to extend this to urls?

Of course!  URLs are just strings.  Stick 'em in the JSON packet with 
everything else.
> 
> Any help would be much appreciated, 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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to