Error code in project

Hello,
I am taking the Ruby course here and every time I try to run it I get an error. I have even downloaded the included zip, and I get the same error with the instructor’s code. Here is the error:
syntax error, unexpected ‘<’, expecting end-of-input <!doctype html>

Below is the code. Any help you can supply would be appreciated. Thank you Don

require ‘sinatra’

get ‘/madlibs’ do
erb :questions
end

post '/madlibs' do
  animal = params[:animal]
  color = params[:color]
  person = params[:person]
  object = params[:object]
  adjective = params[:adjective]
  verb = params[:verb]
  "The #{adjective} #{animal} started to #{verb} because the #{person} ran away with the #{object}"
end

__END__

@@questions
<!doctype html>
<html>
  <header>
    <title>Madlibs</title>
  </header>
  <body>
    <form method="POST" action="/madlibs">
      <p>Animal:</p>
      <input name="animal">
      <p>Color:</p>
      <input name="color">
      <p>Person:</p>
      <input name="person">
      <p>Object:</p>
      <input name="object">
      <p>Adjective:</p>
      <input name="adjective">
      <p>Verb:</p>
      <input name="verb">
      <input type="submit" value="Create Madlib">
    </form>
  </body>
</html>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.