I'm a Rails newbie (and a Ruby newbie for that matter). I am working my way through the book href="http://www.amazon.com/Simply-Rails-2- Patrick-Lenz/dp/0980455200/ref=sr_1_1? ie=UTF8&s=books&qid=1247152951&sr=8-1">"Simply Rails 2"</a>.
I have generated the model and controller parts of the sample app, at which point the author instructs the reader to start the web server and view the app with their browser. Viewing http://localhost:3000/stories in my browser should display the file app/views/stories/index.html.erb, but instead displays the following error: Status: 500 Internal Server Error Content-Type: text/html 500 Internal Server Error Any ideas what might be causing this error? Please see the partial output from the server below: => Booting Mongrel (use 'script/server webrick' to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... ******************************************************************* * config.breakpoint_server has been deprecated and has no effect. * ******************************************************************* ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. ** Mongrel 1.1.4 available at 0.0.0.0:3000 ** Use CTRL-C to stop. /!\ FAILSAFE /!\ Fri Jul 10 01:07:17 +1000 2009 Status: 500 Internal Server Error A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase of at least 30 characters" } in config/environment.rb /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ session/cookie_store.rb:91:in `ensure_secret_secure' /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ session/cookie_store.rb:60:in `initialize' ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---