Skip to content
Browse files

detalles de las rutas

  • Loading branch information...
1 parent c6e3e46 commit ab0f8cfde761cc39f2c492d58e8d80196744a68f @mauriciopasquier mauriciopasquier committed Apr 6, 2012
Showing with 9 additions and 6 deletions.
  1. +9 −6 config/routes.rb
View
15 config/routes.rb
@@ -1,10 +1,13 @@
# -*- encoding : utf-8 -*-
Suelos::Application.routes.draw do
- get "inicio/index"
+ get 'inicio/index'
- get "calicatas/preparar_csv"
- post "calicatas/procesar_csv"
+ # Rutas para exportar a CSV
+ get 'calicatas/preparar_csv'
+ post 'calicatas/procesar_csv'
+ get 'series/preparar_csv' => 'calicatas#preparar_csv'
+ post 'series/procesar_csv' => 'calicatas#procesar_csv'
# Autenticación en rack
devise_for :usuarios
@@ -16,11 +19,11 @@
get 'fases/ajax/:atributo' => 'fases#ajax'
# Para limitar las vistas a las calicatas que son modales
- get '/series' => 'calicatas#index', :as => 'series'
+ get 'series' => 'calicatas#index', :as => 'series'
# Explicito la ruta para evitar que tome 'geo' como un :id
- get '/calicatas/geo' => 'calicatas#geo'
- get '/series/geo' => 'calicatas#geo', :as => 'series'
+ get 'calicatas/geo' => 'calicatas#geo'
+ get 'series/geo' => 'calicatas#geo', :as => 'series'
# Rutas en castellano (i.e. calicatas/nueva, calicatas/2/editar)
scope(:path_names => { :new => "nuevo", :edit => "editar" }) do

0 comments on commit ab0f8cf

Please sign in to comment.
Something went wrong with that request. Please try again.