Getting an error on this

When I run this with shotgun main.rb I get this error:

SyntaxError at /login
/Users/Bill/Dropbox/gotealeaf/new-web-blackjack/views/layout.erb:45: syntax error, unexpected keyword_ensure, expecting $end