search for: rlong

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

Did you mean: long
2006 Jul 07
0
How to pass javascript variables to a method
...avascript variables to a method in my controller. I keep getting an Application 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 appre...