Skip to content

undefined method 'bytesize' #1

@wdawson4

Description

@wdawson4

Spike,
Thanks for your demonstration on monday. I am having trouble running the example you posted here. Any recommendations on how to solve?

Request to localhost:3000

Started GET "/" for ::1 at 2015-02-09 15:57:41 -0800
Processing by HomeController#index as HTML
  Rendered home/index.html.erb within layouts/application (9.7ms)
Completed 500 Internal Server Error in 15ms


ActionView::Template::Error (undefined method `bytesize' for nil:NilClass):
    15:   <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
    16: </footer>
    17:
    18: <%= javascript_include_tag 'globals/manifest.js' %>
  app/views/home/index.html.erb:18:in `_app_views_home_index_html_erb___1255414196832334667_2237921020'

Request to localhost:3000/commonjs

Started GET "/commonjs" for ::1 at 2015-02-09 15:57:49 -0800
Processing by HomeController#commonjs as HTML
  Rendered home/commonjs.html.erb within layouts/application (10.9ms)
Completed 500 Internal Server Error in 46ms

ActionView::Template::Error (undefined method `bytesize' for nil:NilClass):
    3: <head>
    4:   <title>Sprockets Node Example</title>
    5:   <%= stylesheet_link_tag    'application', media: 'all' %>
    6:   <%= javascript_include_tag 'application' %>
    7:   <%= csrf_meta_tags %>
    8: </head>
    9: <body>
  app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___3950431967555712526_2237899980'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions