From c8f306ddd9cbe4aade89bb8ae261917c41d466f8 Mon Sep 17 00:00:00 2001
From: Diego <dimartin@inf.utfsm.cl>
Date: Sun, 4 Oct 2015 20:46:47 -0300
Subject: [PATCH] plz 3

---
 db/development.sqlite3 | Bin 56320 -> 56320 bytes
 log/development.log    | 364 +++++++++++++++++++++++++++++++++++++++++
 tmp/pids/server.pid    |   2 +-
 3 files changed, 365 insertions(+), 1 deletion(-)

diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 7825b6f11f4b7374732d4f8986786a5b29d499cd..8fc9efb53d25dbeab12434887cea78a0ef2f514b 100644
GIT binary patch
delta 524
zcmZ{fJxgOz5Qfj3(QCxSh!I3%5s_5lan8s6$W@Sw>|!By7NW)WtE36+f=&K`UJlm!
z6O6YJJ1Z>(ZA@X4LP509Kd?tPVk{g62IhHrXWr&1HcxTC414L+GVHZ}Rf~R6k@V*z
z&5@}n9jjU_m57Wcqk0I1u`#g>gp{EoW6z3Vu}AGo3Qk705j?w7S_Yl9N>7vJp&o<(
zVqXd!1W_%thhoy1RP3u5?;5?cutsDj<{w8q;0&9{cpaXh4m?etcYb>%Rwzs-jIqLC
zF6RbIlFu88$fc03yFrMATe<qwyb(<?DdC5a49xc=tIGq=^YD)0U6zY(u)hzP%hy?$
z&U@Hl_<~RPfSqi3@w&^hhovclvzWI74FmZsZd`G%9|5?wqkmo;soH_R>l~}C^x}hL
zv%9xjV>!5Fc!muW{GK224L%B&t@IdHSM(qQC<7!3=QBTD5%IpSZ>uQQMg)<TLG63;
RL)p!C#jdr7vZeMp`~%^&c~<}c

delta 309
zcmYj}FHgfj96)>bTPfL+b?F3QObmfxS-ETP);~Zd76gXOAPA7~0U$L^Ai-443_<e?
zz8+Q1EOUGU1Q=!~SVD#v7QyCb-^+W+5RxH0ZjnJ+?~*}&wPTVpW@fGCFfLo1wU}ry
zFBERb1KX2AumDG<htFoI;JZ9{saylm@uu1(j>@aEnk=rAJP75YbZpUXyUbZJ%cl&b
zuvs8{$rjHB{@NSnO5t(g<L2IXStpSO31~DTKP1Z2OQItFv{ukzqN$?)0cp>`$^Ldx
zhp7g0n88$44&IkoO*?e~yI`Ra3w0R3(X_XY*6n=3nrPgeqV;f`XML)g_n#M*K`jkN
d5Q9y>XhzSdm8XA%9yxeEZs5tdq&nkQ@(((oSQ7vM

diff --git a/log/development.log b/log/development.log
index 4f1ce6b..d073546 100644
--- a/log/development.log
+++ b/log/development.log
@@ -55556,3 +55556,367 @@ Processing by TripsController#show as HTML
   Rendered trips/show.html.erb within layouts/user (0.5ms)
   User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
 Completed 200 OK in 110ms (Views: 108.2ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/" for 127.0.0.1 at 2015-10-04 20:25:47 -0300
+  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
+Processing by WelcomeController#index as HTML
+  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+  Rendered welcome/index.html.erb within layouts/application (138.7ms)
+Completed 200 OK in 1893ms (Views: 1803.1ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/trips?utf8=%E2%9C%93&inicio=casablanca&fin=santiago&fecha_salida=" for 127.0.0.1 at 2015-10-04 20:27:24 -0300
+Processing by TripsController#index as HTML
+  Parameters: {"utf8"=>"✓", "inicio"=>"casablanca", "fin"=>"santiago", "fecha_salida"=>""}
+  Trip Load (0.5ms)  SELECT "trips".* FROM "trips" WHERE (fin LIKE 'santiago') AND (inicio LIKE 'casablanca')
+  Rendered trips/index.html.erb within layouts/user (23.5ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 210ms (Views: 126.8ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/trips/2" for 127.0.0.1 at 2015-10-04 20:27:34 -0300
+Processing by TripsController#show as HTML
+  Parameters: {"id"=>"2"}
+  Trip Load (0.2ms)  SELECT  "trips".* FROM "trips" WHERE "trips"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered trips/show.html.erb within layouts/user (0.4ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 126ms (Views: 106.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/messages" for 127.0.0.1 at 2015-10-04 20:27:41 -0300
+Processing by MessagesController#index as HTML
+  Message Load (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."User_id" = 1
+  Rendered messages/index.html.erb within layouts/user (7.5ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 163ms (Views: 139.3ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/messages/2" for 127.0.0.1 at 2015-10-04 20:27:48 -0300
+Processing by MessagesController#show as HTML
+  Parameters: {"id"=>"2"}
+  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered messages/show.html.erb within layouts/user (1.8ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 145ms (Views: 142.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/users" for 127.0.0.1 at 2015-10-04 20:27:59 -0300
+Processing by UsersController#index as HTML
+  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base to `find`. Please pass the id of the object by calling `.id`. (called from index at /home/diego/git/bd23-2015-1/app/controllers/users_controller.rb:21)
+  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered users/index.html.erb within layouts/user (1.6ms)
+Completed 200 OK in 111ms (Views: 103.7ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/trips/new" for 127.0.0.1 at 2015-10-04 20:28:07 -0300
+Processing by TripsController#new as HTML
+  Car Load (0.2ms)  SELECT "cars".* FROM "cars" WHERE "cars"."User_id" = ?  [["User_id", 2]]
+  Model Load (0.2ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  Trademark Load (0.1ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  Rendered trips/_form.html.erb (193.4ms)
+  Rendered trips/new.html.erb within layouts/user (212.8ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 331ms (Views: 308.3ms | ActiveRecord: 1.6ms)
+
+
+Started GET "/cars/new" for 127.0.0.1 at 2015-10-04 20:28:16 -0300
+Processing by CarsController#new as HTML
+  Trademark Load (0.2ms)  SELECT  "trademarks".* FROM "trademarks"  ORDER BY "trademarks"."id" ASC LIMIT 1
+  Trademark Load (0.2ms)  SELECT "trademarks".* FROM "trademarks"
+  Model Load (0.2ms)  SELECT "models".* FROM "models" WHERE (trademark_id = 1)
+  Color Load (0.2ms)  SELECT "colors".* FROM "colors"
+  Rendered cars/new.html.erb within layouts/user (9.8ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 110ms (Views: 106.8ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/cars/update_models?trademark_id=2&_=1444001245093" for 127.0.0.1 at 2015-10-04 20:28:19 -0300
+Processing by CarsController#update_models as JS
+  Parameters: {"trademark_id"=>"2", "_"=>"1444001245093"}
+  Model Load (0.2ms)  SELECT "models".* FROM "models" WHERE (trademark_id = '2')
+  Rendered models/_model.html.erb (1.0ms)
+  Rendered cars/update_models.coffee (210.9ms)
+Completed 200 OK in 256ms (Views: 254.8ms | ActiveRecord: 0.2ms)
+
+
+Started POST "/cars/new" for 127.0.0.1 at 2015-10-04 20:28:34 -0300
+Processing by CarsController#create as HTML
+  Parameters: {"utf8"=>"✓", "authenticity_token"=>"2HbJawtItBtlQQVURvJNgPpWJGRU8lEtzDsbZWxa7j+JevSEacCzErmB36dYGvImsDi2OsbXgaAFJc3nM9SVxA==", "tri"=>{"trademark_id"=>"2"}, "car"=>{"Model_id"=>"2", "color"=>"#FFFF00", "asientos"=>"2", "comodidad"=>"4"}, "commit"=>"Enviar"}
+   (0.1ms)  begin transaction
+  SQL (6.1ms)  INSERT INTO "cars" ("User_id", "Model_id", "color", "asientos", "comodidad", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["User_id", 2], ["Model_id", 2], ["color", "#FFFF00"], ["asientos", 2], ["comodidad", 4], ["created_at", "2015-10-04 23:28:34.683169"], ["updated_at", "2015-10-04 23:28:34.683169"]]
+   (110.6ms)  commit transaction
+Redirected to http://localhost:3000/users
+Completed 302 Found in 121ms (ActiveRecord: 116.8ms)
+
+
+Started GET "/users" for 127.0.0.1 at 2015-10-04 20:28:34 -0300
+Processing by UsersController#index as HTML
+  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base to `find`. Please pass the id of the object by calling `.id`. (called from index at /home/diego/git/bd23-2015-1/app/controllers/users_controller.rb:21)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered users/index.html.erb within layouts/user (1.7ms)
+Completed 200 OK in 92ms (Views: 86.6ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/trips/new" for 127.0.0.1 at 2015-10-04 20:28:38 -0300
+Processing by TripsController#new as HTML
+  Car Load (0.2ms)  SELECT "cars".* FROM "cars" WHERE "cars"."User_id" = ?  [["User_id", 2]]
+  Model Load (0.2ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  Trademark Load (0.1ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  Model Load (0.1ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 2]]
+  Trademark Load (0.1ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 2]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered trips/_form.html.erb (17.3ms)
+  Rendered trips/new.html.erb within layouts/user (18.2ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 113ms (Views: 110.0ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/assesments/index" for 127.0.0.1 at 2015-10-04 20:28:45 -0300
+Processing by AssesmentsController#index as HTML
+  Assesment Load (0.2ms)  SELECT "assesments".* FROM "assesments" WHERE "assesments"."User_id" = ?  [["User_id", 1]]
+  Trip Load (0.2ms)  SELECT  "trips".* FROM "trips" WHERE "trips"."id" = ? LIMIT 1  [["id", 1]]
+  Rendered assesments/index.html.erb within layouts/user (8.4ms)
+  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 115ms (Views: 100.1ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/assesments/new" for 127.0.0.1 at 2015-10-04 20:28:56 -0300
+Processing by AssesmentsController#new as HTML
+  TripUser Load (0.3ms)  SELECT * FROM trip_users INNER JOIN assesments ON trip_users.user_id=assesments.User_id AND trip_users.trip_id!=assesments.Trip_id WHERE trip_users.user_id = 2
+  Rendered assesments/new.html.erb within layouts/user (1.1ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 92ms (Views: 79.2ms | ActiveRecord: 0.6ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2015-10-04 20:29:00 -0300
+Processing by Devise::SessionsController#destroy as HTML
+  Parameters: {"authenticity_token"=>"gG2LMcmDKWo37EBBkG7/LVWnWxXK+V7VMGA6QRkzN6rRYbbeqwsuY+ssmrKOhkCLH8nJS1jcjlj5fuzDRr1MUQ=="}
+  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+   (0.1ms)  begin transaction
+   (0.1ms)  commit transaction
+Redirected to http://localhost:3000/
+Completed 302 Found in 18ms (ActiveRecord: 0.4ms)
+
+
+Started GET "/" for 127.0.0.1 at 2015-10-04 20:29:00 -0300
+Processing by WelcomeController#index as HTML
+  Rendered welcome/index.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 83ms (Views: 82.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/admins/sign_in" for 127.0.0.1 at 2015-10-04 20:29:06 -0300
+Processing by Devise::SessionsController#new as HTML
+  Rendered devise/shared/_links.html.erb (2.4ms)
+  Rendered devise/sessions/new.html.erb within layouts/application (237.1ms)
+Completed 200 OK in 433ms (Views: 392.0ms | ActiveRecord: 0.4ms)
+
+
+Started POST "/admins/sign_in" for 127.0.0.1 at 2015-10-04 20:29:12 -0300
+Processing by Devise::SessionsController#create as HTML
+  Parameters: {"utf8"=>"✓", "authenticity_token"=>"e721mPECyomCkishKtkc/ezeELX8xaikuLE7TU8Ggn2D8X6wubF59iyqqC3fkhJjCmjBEFTMVZUgJ/04lvnF6A==", "admin"=>{"email"=>"dec.spore@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
+  Admin Load (0.3ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."email" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["email", "dec.spore@gmail.com"]]
+   (0.2ms)  begin transaction
+  SQL (0.4ms)  UPDATE "admins" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "admins"."id" = ?  [["last_sign_in_at", "2015-10-04 07:44:16.117204"], ["current_sign_in_at", "2015-10-04 23:29:12.843042"], ["sign_in_count", 15], ["updated_at", "2015-10-04 23:29:12.845106"], ["id", 1]]
+   (97.9ms)  commit transaction
+Redirected to http://localhost:3000/admins
+Completed 302 Found in 415ms (ActiveRecord: 98.7ms)
+
+
+Started GET "/admins" for 127.0.0.1 at 2015-10-04 20:29:12 -0300
+Processing by AdminsController#index as HTML
+  Rendered admins/index.html.erb within layouts/admin (0.9ms)
+  Admin Load (0.3ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+Completed 200 OK in 123ms (Views: 121.8ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/messages" for 127.0.0.1 at 2015-10-04 20:29:22 -0300
+Processing by MessagesController#index as HTML
+  Admin Load (0.2ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+  Message Load (0.2ms)  SELECT "messages".* FROM "messages"
+  Rendered messages/index.html.erb within layouts/admin (1.2ms)
+Completed 200 OK in 89ms (Views: 86.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/messages/2" for 127.0.0.1 at 2015-10-04 20:29:24 -0300
+Processing by MessagesController#show as HTML
+  Parameters: {"id"=>"2"}
+  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 2]]
+  Admin Load (0.1ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+  Rendered messages/show.html.erb within layouts/admin (0.3ms)
+Completed 200 OK in 80ms (Views: 78.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/trademarks" for 127.0.0.1 at 2015-10-04 20:29:26 -0300
+Processing by TrademarksController#index as HTML
+  Trademark Load (0.2ms)  SELECT "trademarks".* FROM "trademarks"
+  Rendered trademarks/index.html.erb within layouts/admin (2.3ms)
+  Admin Load (0.1ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+Completed 200 OK in 124ms (Views: 122.5ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/trademarks/new" for 127.0.0.1 at 2015-10-04 20:29:28 -0300
+Processing by TrademarksController#new as HTML
+  Rendered trademarks/new.html.erb within layouts/admin (2.4ms)
+  Admin Load (0.1ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+Completed 200 OK in 85ms (Views: 84.1ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/models" for 127.0.0.1 at 2015-10-04 20:29:29 -0300
+Processing by ModelsController#index as HTML
+  Model Load (0.2ms)  SELECT "models".* FROM "models"
+  Rendered models/index.html.erb within layouts/admin (1.6ms)
+  Admin Load (0.1ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+Completed 200 OK in 111ms (Views: 109.5ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/colors" for 127.0.0.1 at 2015-10-04 20:29:31 -0300
+Processing by ColorsController#index as HTML
+  Color Load (0.4ms)  SELECT "colors".* FROM "colors"
+  Rendered colors/index.html.erb within layouts/admin (2.3ms)
+  Admin Load (0.1ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+Completed 200 OK in 88ms (Views: 86.6ms | ActiveRecord: 0.5ms)
+
+
+Started DELETE "/admins/sign_out" for 127.0.0.1 at 2015-10-04 20:29:34 -0300
+Processing by Devise::SessionsController#destroy as HTML
+  Parameters: {"authenticity_token"=>"Hnu5OQdqlWgdjanL+DRZCzTRCwyCpvZ08oZ6vBkperbcX1eNRviieSS9basyWbJKsNfB9VaEPXhKyl4beRyCFg=="}
+  Admin Load (0.1ms)  SELECT  "admins".* FROM "admins" WHERE "admins"."id" = ?  ORDER BY "admins"."id" ASC LIMIT 1  [["id", 1]]
+   (0.1ms)  begin transaction
+   (0.1ms)  commit transaction
+Redirected to http://localhost:3000/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+
+
+Started GET "/" for 127.0.0.1 at 2015-10-04 20:29:34 -0300
+Processing by WelcomeController#index as HTML
+  Rendered welcome/index.html.erb within layouts/application (1.1ms)
+Completed 200 OK in 85ms (Views: 83.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2015-10-04 20:29:45 -0300
+Processing by WelcomeController#index as HTML
+  Rendered welcome/index.html.erb within layouts/application (1.1ms)
+Completed 200 OK in 93ms (Views: 92.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2015-10-04 20:29:47 -0300
+Processing by Devise::SessionsController#new as HTML
+  Rendered devise/shared/_links.html.erb (1.2ms)
+  Rendered devise/sessions/new.html.erb within layouts/application (5.0ms)
+Completed 200 OK in 84ms (Views: 82.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/auth/facebook" for 127.0.0.1 at 2015-10-04 20:29:48 -0300
+
+
+Started GET "/users/auth/facebook" for 127.0.0.1 at 2015-10-04 20:29:49 -0300
+
+
+Started GET "/users/auth/facebook/callback?code=AQD-kjWl1P4C1J4P4TugK-Qw-lJz8iDhxAiIgNd_0z5dPsp4oDBMBE3Sg85IhkrXjwmV4KMPogSwaTruvtxr8Uvpymjn_i8u7kAH3gFIIelqqeVFazvE7bgf7ZeyftTRcXOLgzs4n4hHSKmYk_HiYq7eoetpJwLzyfE9bDqW1glS6VFzj8-76VxxgirP5PfIrBX8Qpopo_wpF8Xu_bOw71cWns9DisxIgiEa8qo7eXZ4cyl51L3r4LGQmBoBYExRRihdpMk2DwxiJK0zuFfF4lvgDkE4CDbLE69UYpZzucyeAJbe1QL-DPnbRpRQQp6A0rg&state=d0fa3adf998772910b85d4255a1c7474ef3528b33733ae57" for 127.0.0.1 at 2015-10-04 20:29:49 -0300
+Processing by OmniauthCallbacksController#facebook as HTML
+  Parameters: {"code"=>"AQD-kjWl1P4C1J4P4TugK-Qw-lJz8iDhxAiIgNd_0z5dPsp4oDBMBE3Sg85IhkrXjwmV4KMPogSwaTruvtxr8Uvpymjn_i8u7kAH3gFIIelqqeVFazvE7bgf7ZeyftTRcXOLgzs4n4hHSKmYk_HiYq7eoetpJwLzyfE9bDqW1glS6VFzj8-76VxxgirP5PfIrBX8Qpopo_wpF8Xu_bOw71cWns9DisxIgiEa8qo7eXZ4cyl51L3r4LGQmBoBYExRRihdpMk2DwxiJK0zuFfF4lvgDkE4CDbLE69UYpZzucyeAJbe1QL-DPnbRpRQQp6A0rg", "state"=>"d0fa3adf998772910b85d4255a1c7474ef3528b33733ae57"}
+  Identity Load (0.3ms)  SELECT  "identities".* FROM "identities" WHERE "identities"."uid" = ? AND "identities"."provider" = ? LIMIT 1  [["uid", "10207655869613562"], ["provider", "facebook"]]
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 2]]
+   (0.1ms)  begin transaction
+  SQL (0.3ms)  UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?  [["last_sign_in_at", "2015-10-04 19:53:12.466302"], ["current_sign_in_at", "2015-10-04 23:29:51.366897"], ["sign_in_count", 11], ["updated_at", "2015-10-04 23:29:51.367900"], ["id", 2]]
+   (111.9ms)  commit transaction
+Redirected to http://localhost:3000/users.2
+Completed 302 Found in 199ms (ActiveRecord: 113.1ms)
+
+
+Started GET "/users.2" for 127.0.0.1 at 2015-10-04 20:29:51 -0300
+Processing by UsersController#index as 
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base to `find`. Please pass the id of the object by calling `.id`. (called from index at /home/diego/git/bd23-2015-1/app/controllers/users_controller.rb:21)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered users/index.html.erb within layouts/user (1.5ms)
+Completed 200 OK in 98ms (Views: 95.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/trips/new" for 127.0.0.1 at 2015-10-04 20:29:57 -0300
+Processing by TripsController#new as HTML
+  Car Load (0.2ms)  SELECT "cars".* FROM "cars" WHERE "cars"."User_id" = ?  [["User_id", 2]]
+  Model Load (0.1ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  Trademark Load (0.1ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 1]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 1]]
+  Model Load (0.1ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 2]]
+  Trademark Load (0.1ms)  SELECT  "trademarks".* FROM "trademarks" WHERE "trademarks"."id" = ? LIMIT 1  [["id", 2]]
+  CACHE (0.0ms)  SELECT  "models".* FROM "models" WHERE "models"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered trips/_form.html.erb (15.9ms)
+  Rendered trips/new.html.erb within layouts/user (16.7ms)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+Completed 200 OK in 100ms (Views: 97.1ms | ActiveRecord: 0.9ms)
+
+
+Started POST "/trips" for 127.0.0.1 at 2015-10-04 20:30:02 -0300
+Processing by TripsController#create as HTML
+  Parameters: {"utf8"=>"✓", "authenticity_token"=>"5ORa2DRP4r+B+aUaIfmQUCUwyJV4z8bHeeL/lrpySKLV56Wwt/YzJZ+tJKvSQ7PlI1ZPqdnvw/yeTAe+OBsj2w==", "trip"=>{"inicio"=>"", "fin"=>"", "fecha_salida(1i)"=>"2015", "fecha_salida(2i)"=>"10", "fecha_salida(3i)"=>"4", "hora_salida(1i)"=>"2015", "hora_salida(2i)"=>"10", "hora_salida(3i)"=>"4", "hora_salida(4i)"=>"23", "hora_salida(5i)"=>"29", "pecio_total"=>"", "tam_equipaje"=>"1", "Car_id"=>"", "asientos_disponibles"=>"", "detalle"=>"", "tolerancia"=>"0", "demora"=>"0"}, "commit"=>"Guardar"}
+   (0.1ms)  begin transaction
+  SQL (0.3ms)  INSERT INTO "trips" ("inicio", "fin", "fecha_salida", "hora_salida", "tam_equipaje", "detalle", "tolerancia", "demora", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)  [["inicio", ""], ["fin", ""], ["fecha_salida", "2015-10-04"], ["hora_salida", "2000-01-01 23:29:00.000000"], ["tam_equipaje", 1.0], ["detalle", ""], ["tolerancia", 0], ["demora", 0], ["created_at", "2015-10-04 23:30:02.578164"], ["updated_at", "2015-10-04 23:30:02.578164"]]
+   (206.9ms)  commit transaction
+Redirected to http://localhost:3000/users
+Completed 302 Found in 214ms (ActiveRecord: 207.4ms)
+
+
+Started GET "/users" for 127.0.0.1 at 2015-10-04 20:30:02 -0300
+Processing by UsersController#index as HTML
+  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base to `find`. Please pass the id of the object by calling `.id`. (called from index at /home/diego/git/bd23-2015-1/app/controllers/users_controller.rb:21)
+  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 2]]
+  Rendered users/index.html.erb within layouts/user (0.9ms)
+Completed 200 OK in 89ms (Views: 86.1ms | ActiveRecord: 0.3ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2015-10-04 20:30:19 -0300
+Processing by Devise::SessionsController#destroy as HTML
+  Parameters: {"authenticity_token"=>"OC9iPWa9gUeCqrcCBiMvLGKn24+9ljg0tE3hzGSu9NYJLJ1V5QRQ3Zz+NrP1mQyZZMFcsxy2PQ9T4xnk5sefrw=="}
+  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
+   (0.1ms)  begin transaction
+   (0.1ms)  commit transaction
+Redirected to http://localhost:3000/
+Completed 302 Found in 15ms (ActiveRecord: 0.4ms)
+
+
+Started GET "/" for 127.0.0.1 at 2015-10-04 20:30:19 -0300
+Processing by WelcomeController#index as HTML
+  Rendered welcome/index.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 84ms (Views: 82.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2015-10-04 20:30:21 -0300
+Processing by Devise::SessionsController#new as HTML
+  Rendered devise/shared/_links.html.erb (0.8ms)
+  Rendered devise/sessions/new.html.erb within layouts/application (3.9ms)
+Completed 200 OK in 86ms (Views: 84.9ms | ActiveRecord: 0.0ms)
diff --git a/tmp/pids/server.pid b/tmp/pids/server.pid
index 6cad040..4a90f67 100644
--- a/tmp/pids/server.pid
+++ b/tmp/pids/server.pid
@@ -1 +1 @@
-2954
\ No newline at end of file
+2078
\ No newline at end of file
-- 
GitLab