Rails routing from the outside in