search for: updatecoordinates

Displaying 1 result from an estimated 1 matches for "updatecoordinates".

2006 Jul 07
0
How to pass javascript variables to a method
...cation Error and I don''t know why. Here''s what I have in my javascript code: <% @rID = capture do %>id<% end %> <% @rLAT = capture do %>place.Point.coordinates[1]<% end %> <% @rLONG = capture do %>place.Point.coordinates[0]<% end %> <%= updatecoordinates(@rID, @rLAT, @rLONG) %> On the controller end, I have the following: def updatecoordinates(id, lat, long) Bookstore.update(id, {:latitude => lat, :longitude=> long}) end Any help would be greatly appreciated. Thanks, Chris Williams -- Posted via http://www.ruby-forum.com/.