I notice a missing closing bracket at the </show-page -- did you miss it cut/pasting?
Mike On Sun, May 23, 2010 at 11:34 AM, Ben <[email protected]> wrote: > I am working through Tutorial 16 in "Rapid Rails with Hobo." > Everything is fine until I put the following code in /views/countries/ > show.dryml which I copied directly from the book. Deleting the > show.dryml file does away with the error. > > <show-page> > <content-body:> > <a action="edit">Edit My Country</a><br/> > </content-body:> > </show-page > > When I click on the "Countries" tab and then click on a country I get > a page of error messages which begin as below. Any help appreciated. > > Hobo::Dryml::DrymlSyntaxError in Countries#show > > Showing app/views/countries/show.dryml where line # raised: > > File: app/views/countries/show.dryml > #<REXML::ParseException: #<NoMethodError: You have a nil object when > you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[]> > . > . > . > . > Request > > Parameters: > > {"id"=>"1-usa"} > Show session dump > > --- > Response > > Headers: > > {"Pragma"=>"no-cache", > "Cache-Control"=>"no-store", > "Expires"=>"0", > "Content-Type"=>""} > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<hobousers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
