Created
October 12, 2014 23:14
-
-
Save jaake/ca73097a97f6ed8553c1 to your computer and use it in GitHub Desktop.
Rails fails to pass in variables from controller:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m | |
| Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/foundation/foundation.abide.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/foundation/foundation.clearing.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/foundation/foundation.joyride.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/foundation/foundation.offcanvas.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/foundation/foundation.slider.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/foundation/foundation.tooltip.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/h-divider-large.png" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/assets/h-divider.png" for 127.0.0.1 at 2014-10-12 18:12:58 -0500 | |
| Started GET "/menu" for 127.0.0.1 at 2014-10-12 18:13:06 -0500 | |
| Processing by HomeController#menu as HTML | |
| Rendered home/menu.html.erb within layouts/application (2.9ms) | |
| Completed 500 Internal Server Error in 18ms | |
| ActionView::Template::Error (undefined method `each' for nil:NilClass): | |
| 1: <div id="menu"> | |
| 2: <div class="row"> | |
| 3: <% @foods.each do |panel| %> | |
| 4: <div class='menu_item-h'> | |
| 5: <h5>panel.title</h5> | |
| 6: <h6>panel.item01</h6> | |
| app/views/home/menu.html.erb:3:in `_app_views_home_menu_html_erb___3969142842152382994_47883300' | |
| Rendered /home/jaake/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) | |
| Rendered /home/jaake/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) | |
| Rendered /home/jaake/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (10.8ms) | |
| Started GET "/menu" for 127.0.0.1 at 2014-10-12 18:13:06 -0500 | |
| Processing by HomeController#menu as HTML | |
| Rendered home/menu.html.erb within layouts/application (1.7ms) | |
| Completed 500 Internal Server Error in 5ms | |
| ActionView::Template::Error (undefined method `each' for nil:NilClass): | |
| 1: <div id="menu"> | |
| 2: <div class="row"> | |
| 3: <% @foods.each do |panel| %> | |
| 4: <div class='menu_item-h'> | |
| 5: <h5>panel.title</h5> | |
| 6: <h6>panel.item01</h6> | |
| app/views/home/menu.html.erb:3:in `_app_views_home_menu_html_erb___3969142842152382994_42976680' | |
| Rendered /home/jaake/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) | |
| Rendered /home/jaake/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) | |
| Rendered /home/jaake/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (13.1ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment