Skip to content

Instantly share code, notes, and snippets.

@reidransom
Created December 21, 2013 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reidransom/8064060 to your computer and use it in GitHub Desktop.
Save reidransom/8064060 to your computer and use it in GitHub Desktop.
# localhost:3000
NoMethodError in Home#index
Showing /Users/editor/Dropbox/www.b2plus.tv/app/views/home/index.html.slim where line #2 raised:
undefined method `poster' for nil:NilClass
Extracted source (around line #2):
1: .video#video
2: video class='sublime' title='Intro Video' width='900' height='506' poster="#{@home.poster}" preload='none' id='intro-video' data-controls-enable='true' data-initial-overlay-enable='false'
3: source src="#{@home.mp4}"
4: source src="#{@home.ogg}"
5:
# localhost:3000/admin
Routing Error
No route matches {:action=>"edit", :controller=>"home", :id=>nil}
Try running rake routes for more information on available routes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment