Skip to content

ERROR Rack::Lint::LintError: Body yielded non-string value {:id=>100, #10

@tablecell

Description

@tablecell

test.ru

require 'newark'

class App

  include Newark

  before do
    headers['X-Newark-Version'] = Newark::VERSION
  end

  get  '/' do 
  
   body={:id=>100,:title=>"test body respond_to"}
   
   print body.respond_to?(:to_hash) 
  
   body

  end 

 
end

run App.new

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions