error trying out simple example on ubuntu

I’m trying to follow a simple tutorial at http://wiki.rubyonrails.org/rails/pages/Tutorial,
I run

./script/generate controller hello index

but it pulls up a 500 error when I access the page.
The error logs say:

/!\ FAILSAFE /!\ Fri Jun 20 18:06:54 -0700 2008
  Status: 500 Internal Server Error
  Secret should be something secure, like "a6259536bb7e2a1974a2cabefaa1c61b". The value you provided, "<%= app_secret %>", is shorter than the minimum leng

th of 30 characters
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:92:in `ensure_secret_secure'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:57:in `initialize'

    /usr/lib/ruby/1.8/cgi/session.rb:273:in `new'
    /usr/lib/ruby/1.8/cgi/session.rb:273:in `initialize_without_cgi_reader'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/cgi_ext/session.rb:39:in `initialize'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:130:in `new'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:130:in `session'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:166:in `stale_session_check!'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:114:in `session'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/base.rb:1141:in `assign_shortcuts_without_flash'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/flash.rb:167:in `assign_shortcuts'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/base.rb:518:in `process_without_filters'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/filters.rb:685:in `process_without_session_management_support'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/session_management.rb:123:in `process'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/base.rb:388:in `process'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in `handle_request'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'

    /home/johnwa/Desktop/downloads/rails/vendor/rails/railties/lib/webrick_server.rb:112:in `handle_dispatch'
    /home/johnwa/Desktop/downloads/rails/vendor/rails/railties/lib/webrick_serve

Any ideas?

-John Watson
john.watson@gmail.com

John Watson wrote:

I'm trying to follow a simple tutorial at
http://wiki.rubyonrails.org/rails/pages/Tutorial,
I run

./script/generate controller hello index

but it pulls up a 500 error when I access the page.
The error logs say:

/!\ FAILSAFE /!\ Fri Jun 20 18:06:54 -0700 2008
  Status: 500 Internal Server Error
  Secret should be something secure, like
"a6259536bb7e2a1974a2cabefaa1c61b". The value you provided, "<%=
app_secret %>", is shorter than the minimum leng
th of 30 characters

looks like you started your application after they added secrets, but
before they made the min length = 30.

try running "rake secret"
and copy and paste what it generates into config/environment.rb

config.action_controller.session = {
    :session_key => '_festible_session',
    :secret => *your secret*
  }