Products not showing up on the carousel

https://github.com/Faisal-Hassan/vzncommerce

The link above is the link to my project. I’m trying to pull up 3 products from the database to show up on the index page in a carousel. The index page comes up as blank. How can I fix this? Thanks.

https://github.com/Faisal-Hassan/vzncommerce

The link above is the link to my project. I'm trying to pull up 3 products
from the database to show up on the index page in a carousel. The index page
comes up as blank. How can I fix this? Thanks.

By first looking in log/development.log to see what is happening when
you make the request for the index page. Then if that looks ok start
debugging your code to see what is going wrong. A simple way is to
insert calls to logger.info to print values to the log file at
appropriate points to see what is going wrong. When you have worked
out which bit is failing then, if you still cannot see the problem,
post here a few lines of code around the bit that is failing and
someone will help.

Colin

An excerpt from development.log

Started GET “/” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Processing by StaticPagesController#index as HTML

[1m[35mProduct Load (0.2ms)[0m SELECT “products”.* FROM “products” LIMIT 3

Rendered static_pages/index.html.erb within layouts/application (2.2ms)

Rendered layouts/_header.html.erb (0.6ms)

Completed 200 OK in 251ms (Views: 250.0ms | ActiveRecord: 0.2ms)

Started GET “/assets/twitter-bootstrap-static/bootstrap.css?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter-bootstrap-static/fontawesome.css?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/transition.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/jquery.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/alert.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/modal.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/bootstrap_and_overrides.css?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/static_pages.css?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/jquery_ujs.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/products.css?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/application.css?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/dropdown.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/scrollspy.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/tab.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/tooltip.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/popover.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/button.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/collapse.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/affix.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap/carousel.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter/bootstrap.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/jquery.turbolinks.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/turbolinks.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/application.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/products.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/bootstrap.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/static_pages.js?body=1” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

Started GET “/assets/twitter-bootstrap-static/twitter/fonts/glyphicons-halflings-regular.woff” for 127.0.0.1 at 2015-04-01 12:43:11 -0400

ActionController::RoutingError (No route matches [GET] “/assets/twitter-bootstrap-static/twitter/fonts/glyphicons-halflings-regular.woff”):

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/rack/logger.rb:38:in `call_app’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/rack/logger.rb:20:in `block in call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:68:in `block in tagged’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:26:in `tagged’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:68:in `tagged’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/rack/logger.rb:20:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/request_id.rb:21:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/static.rb:64:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/engine.rb:514:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/application.rb:144:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service’

/home/faisalhassan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service’

/home/faisalhassan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run’

/home/faisalhassan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread’

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.4ms)

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.4ms)

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (28.7ms)

Started GET “/assets/twitter-bootstrap-static/twitter/fonts/glyphicons-halflings-regular.ttf” for 127.0.0.1 at 2015-04-01 12:43:12 -0400

ActionController::RoutingError (No route matches [GET] “/assets/twitter-bootstrap-static/twitter/fonts/glyphicons-halflings-regular.ttf”):

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/rack/logger.rb:38:in `call_app’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/rack/logger.rb:20:in `block in call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:68:in `block in tagged’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:26:in `tagged’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:68:in `tagged’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/rack/logger.rb:20:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/request_id.rb:21:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/activesupport-4.1.1/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/static.rb:64:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/engine.rb:514:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/railties-4.1.1/lib/rails/application.rb:144:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call’

/home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service’

/home/faisalhassan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service’

/home/faisalhassan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run’

/home/faisalhassan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread’

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms)

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)

Rendered /home/faisalhassan/.rvm/gems/ruby-2.1.1@global/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (26.7ms)

Google can be very useful for this sort of problem. Googling for
No route matches [GET]
"/assets/twitter-bootstrap-static/twitter/fonts/glyphicons-halflings-regular.woff
took me straight to
https://github.com/Nerian/bootstrap-wysihtml5-rails/issues/102
which looks as if it might be helpful

Colin