Closed tablecell closed 4 years ago
@tablecell Thanks for reporting this issue. It looks like it's a known bug in Rack: https://github.com/rack/rack/pull/1610
I added a workaround and pushed the version 3.9.3.
btw
on "username/:username" do |username|
user = User.find_by_username(username) # username == "foobar"
Is "User" extends from ApplicationRecord ? Is there any crud example code for database ,such as blog post /list
I think it should work just fine with ActiveRecord or any other ORM. Can you give it a try and tell me how it goes?
/Ruby27/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/cookie.rb:155:in
<class:Cookie>': undefined method
DelegateClass' for Rack::Session::Cookie:Class (NoMethodError) hele_world.rb