[openstreetmap-website] fixes for trac #4730 (also #4748) (#216)
Tom Hughes
notifications at github.com
Thu Feb 28 22:31:36 UTC 2013
> @@ -40,4 +40,41 @@ def describe_location(lat, lon, zoom = nil, language = nil)
> "#{number_with_precision(lat, :precision => 3)}, #{number_with_precision(lon, :precision => 3)}"
> end
> end
> +
> + def nsew_to_decdeg(captures)
Wouldn't it make more sense to put these methods in the controller? It's the only place they are used, their implementation is intimately tied to the regexs used in the controller method, and it will having to jump through hoops with `view_context` to call them.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/216/files#r3197463
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130228/fa02cdd5/attachment.html>
More information about the rails-dev
mailing list