Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding .gems

  • Loading branch information...
commit 693c8a47e06edd61fee3f1db2a574ba9636e2ac3 1 parent 886cd2f
Ivan Acosta-Rubio authored
4 .gems
... ... @@ -1 +1,3 @@
1   -geokit
  1 +geokit
  2 +factory_girl
  3 +cucumber
6 app/controllers/tiendas_controller.rb
... ... @@ -1,12 +1,8 @@
1 1 class TiendasController < ApplicationController
2 2 before_filter :procesar_ciudades, :cuantos_churromanias
3 3 geocode_ip_address
4   -
5   - def buscar
6 4
7   - end
8   -
9   - # GET /tiendas
  5 + # GET /tiendas
10 6 # GET /tiendas.xml
11 7 def index
12 8 @tiendas = Tienda.find(:all)
7 app/views/buscar/show.erb
@@ -5,9 +5,4 @@
5 5 </div>
6 6 <% end %>
7 7
8   -
9   -
10   -<% if params[:admin] == "yes" %>
11   - <%= link_to 'Editar', edit_tienda_path(@tienda) %> |
12   - <%= link_to 'Borrar', @tienda ,:confirm => '¿Seguro?', :method => :delete %>
13   -<% end %>
  8 +<%= render :partial => '/layouts/admin_bar' %>
4 app/views/layouts/_admin_bar.erb
... ... @@ -0,0 +1,4 @@
  1 +<% if params[:admin] == "yes" %>
  2 + <%= link_to 'Editar', edit_tienda_path(@tienda) %> |
  3 + <%= link_to 'Borrar', @tienda ,:confirm => '¿Seguro?', :method => :delete %>
  4 +<% end %>
1  app/views/layouts/application.html.erb
@@ -15,6 +15,7 @@
15 15 <%= link_to image_tag('/images/logo.png'), '/' %>
16 16 <%= image_tag '/images/locations.png' %>
17 17
  18 + <% session[:geo_location] %>
18 19
19 20 <div class="ciudades">
20 21 Todas las Ciudades
6 app/views/tiendas/show.html.erb
@@ -9,8 +9,4 @@
9 9 <%=h @tienda.direccion %>
10 10 </div>
11 11
12   -
13   -<% if params[:admin] == "yes" %>
14   - <%= link_to 'Editar', edit_tienda_path(@tienda) %> |
15   - <%= link_to 'Borrar', @tienda ,:confirm => '¿Seguro?', :method => :delete %>
16   -<% end %>
  12 +<%= render :partial => '/layouts/admin_bar' %>
3,673 log/cucumber.log
3,673 additions, 0 deletions not shown
122 log/development.log
@@ -16480,3 +16480,125 @@ Rendering template within layouts/application
16480 16480 Rendering buscar/show
16481 16481 Rendered tiendas/_new (12.1ms)
16482 16482 Completed in 49ms (View: 23, DB: 3) | 200 OK [http://127.0.0.1/buscar/ORLANDO]
  16483 + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
  16484 +
  16485 +
  16486 +Processing BuscarController#show (for 127.0.0.1 at 2009-12-11 10:39:07) [GET]
  16487 + Parameters: {"id"=>"PEMBROKE PINES"}
  16488 + Tienda Load (0.4ms) SELECT * FROM `tiendas` 
  16489 + Tienda Columns (1.7ms) SHOW FIELDS FROM `tiendas`
  16490 + SQL (0.2ms) SELECT count(*) AS count_all FROM `tiendas` 
  16491 + Tienda Load (0.3ms) SELECT * FROM `tiendas` WHERE (`tiendas`.`ciudad` = 'PEMBROKE PINES') 
  16492 +Rendering template within layouts/application
  16493 +Rendering buscar/show
  16494 +Rendered tiendas/_new (11.7ms)
  16495 +Completed in 47ms (View: 23, DB: 3) | 200 OK [http://127.0.0.1/buscar/PEMBROKE%20PINES]
  16496 + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
  16497 +
  16498 +
  16499 +Processing TiendasController#index (for 127.0.0.1 at 2009-12-11 10:39:09) [GET]
  16500 + Tienda Load (0.5ms) SELECT * FROM `tiendas` 
  16501 + Tienda Columns (2.1ms) SHOW FIELDS FROM `tiendas`
  16502 + SQL (0.2ms) SELECT count(*) AS count_all FROM `tiendas` 
  16503 + CACHE (0.0ms) SELECT * FROM `tiendas` 
  16504 +Rendering template within layouts/application
  16505 +Rendering tiendas/index
  16506 +Rendered tiendas/_new (9.9ms)
  16507 +Completed in 542ms (View: 42, DB: 3) | 200 OK [http://127.0.0.1/]
  16508 + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
  16509 +
  16510 +
  16511 +Processing TiendasController#index (for 127.0.0.1 at 2009-12-11 10:39:19) [GET]
  16512 + Tienda Load (1.4ms) SELECT * FROM `tiendas` 
  16513 + Tienda Columns (1.7ms) SHOW FIELDS FROM `tiendas`
  16514 + SQL (0.3ms) SELECT count(*) AS count_all FROM `tiendas` 
  16515 + CACHE (0.0ms) SELECT * FROM `tiendas` 
  16516 +Rendering template within layouts/application
  16517 +Rendering tiendas/index
  16518 +Rendered tiendas/_new (9.8ms)
  16519 +Completed in 512ms (View: 40, DB: 3) | 200 OK [http://127.0.0.1/]
  16520 + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
  16521 +
  16522 +
  16523 +Processing TiendasController#index (for 127.0.0.1 at 2009-12-11 11:00:19) [GET]
  16524 + Tienda Load (0.5ms) SELECT * FROM `tiendas` 
  16525 + Tienda Columns (2.0ms) SHOW FIELDS FROM `tiendas`
  16526 + SQL (0.3ms) SELECT count(*) AS count_all FROM `tiendas` 
  16527 + CACHE (0.0ms) SELECT * FROM `tiendas` 
  16528 +Rendering template within layouts/application
  16529 +Rendering tiendas/index
  16530 +Rendered tiendas/_new (9.9ms)
  16531 +Completed in 571ms (View: 41, DB: 3) | 200 OK [http://127.0.0.1/]
  16532 + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
  16533 +
  16534 +
  16535 +Processing BuscarController#show (for 127.0.0.1 at 2009-12-11 11:01:52) [GET]
  16536 + Parameters: {"id"=>"CIUDADBOLIVAR"}
  16537 + Tienda Load (0.5ms) SELECT * FROM `tiendas` 
  16538 + Tienda Columns (1.9ms) SHOW FIELDS FROM `tiendas`
  16539 + SQL (0.2ms) SELECT count(*) AS count_all FROM `tiendas` 
  16540 + Tienda Load (0.3ms) SELECT * FROM `tiendas` WHERE (`tiendas`.`ciudad` = 'CIUDADBOLIVAR') 
  16541 +Rendering template within layouts/application
  16542 +Rendering buscar/show
  16543 +Rendered tiendas/_new (12.4ms)
  16544 +Completed in 54ms (View: 24, DB: 3) | 200 OK [http://127.0.0.1/buscar/CIUDADBOLIVAR]
  16545 + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
  16546 +
  16547 +
  16548 +Processing TiendasController#index (for 127.0.0.1 at 2009-12-11 11:02:23) [GET]
  16549 + Tienda Load (0.6ms) SELECT * FROM `tiendas` 
  16550 + Tienda Columns (2.2ms) SHOW FIELDS FROM `tiendas`
  16551 + SQL (0.2ms) SELECT count(*) AS count_all FROM `tiendas` 
  16552 + CACHE (0.0ms) SELECT * FROM `tiendas` 
  16553 +Rendering template within layouts/application
  16554 +Rendering tiendas/index
  16555 +Rendered tiendas/_new (10.3ms)
  16556 +Completed in 439ms (View: 41, DB: 3) | 200 OK [http://127.0.0.1/]
  16557 + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
  16558 +
  16559 +
  16560 +Processing TiendasController#index (for 127.0.0.1 at 2009-12-11 11:08:41) [GET]
  16561 + Tienda Load (0.5ms) SELECT * FROM `tiendas` 
  16562 + Tienda Columns (1.5ms) SHOW FIELDS FROM `tiendas`
  16563 + SQL (0.4ms) SELECT count(*) AS count_all FROM `tiendas` 
  16564 + CACHE (0.0ms) SELECT * FROM `tiendas` 
  16565 +Rendering template within layouts/application
  16566 +Rendering tiendas/index
  16567 +
  16568 +ActionView::TemplateError (undefined local variable or method `sessions' for #<ActionView::Base:0x10305e688>) on line #18 of app/views/layouts/application.html.erb:
  16569 +15: <%= link_to image_tag('/images/logo.png'), '/' %>
  16570 +16: <%= image_tag '/images/locations.png' %>
  16571 +17:
  16572 +18: <% sessions[:geo_location] %>
  16573 +19:
  16574 +20: <div class="ciudades">
  16575 +21: Todas las Ciudades
  16576 +
  16577 + app/views/layouts/application.html.erb:18
  16578 + app/controllers/tiendas_controller.rb:14:in `index'
  16579 + /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  16580 + /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  16581 + /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  16582 + /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
  16583 + /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  16584 + /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
  16585 + /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
  16586 + /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
  16587 + /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
  16588 + /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
  16589 +
  16590 +Rendered rescues/_trace (91.8ms)
  16591 +Rendered rescues/_request_and_response (0.5ms)
  16592 +Rendering rescues/layout (internal_server_error)
  16593 + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
  16594 +
  16595 +
  16596 +Processing TiendasController#index (for 127.0.0.1 at 2009-12-11 11:08:47) [GET]
  16597 + Tienda Load (0.5ms) SELECT * FROM `tiendas` 
  16598 + Tienda Columns (1.6ms) SHOW FIELDS FROM `tiendas`
  16599 + SQL (0.2ms) SELECT count(*) AS count_all FROM `tiendas` 
  16600 + CACHE (0.0ms) SELECT * FROM `tiendas` 
  16601 +Rendering template within layouts/application
  16602 +Rendering tiendas/index
  16603 +Rendered tiendas/_new (10.1ms)
  16604 +Completed in 452ms (View: 52, DB: 2) | 200 OK [http://127.0.0.1/]

0 comments on commit 693c8a4

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