This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This script is a rough test of two trig-less distance approximation formulas. | |
# | |
# Each formula takes two sets of lat/lon coordinates and returns the approximate | |
# number of miles between them, without using trigonometry. | |
# | |
require 'geocoder' # geocoder ruby gem | |
def dx(c1, c2) | |
d = Geocoder::Calculations.longitude_degree_distance(30) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pt: | |
errors: | |
messages: | |
not_found: "não encontrado" | |
already_confirmed: "já foi confirmado" | |
not_locked: "não foi bloequeado" | |
devise: | |
failure: | |
unauthenticated: 'Para continuar, deve fazer login ou registrar-se.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
en: | |
errors: | |
messages: | |
not_found: "nicht gefunden" | |
already_confirmed: "schon bestätigt" | |
not_locked: "nicht verriegelt" | |
devise: | |
failure: | |
unauthenticated: 'Sie brauchen sich anzumelden oder einzutragen, bevor Sie fortsetzen.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GET /articles/1 | |
def show | |
@article = Article.find_by_handle!(params[:id]) | |
... | |
end | |
# GET /articles/1/edit | |
def edit | |
@article = Article.find_by_handle!(params[:id]) | |
end |