We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/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
<class:Cookie>': undefined method
require "cuba" require "cuba/safe" Cuba.use Rack::Session::Cookie, :secret => "__a_very_long_string__" Cuba.plugin Cuba::Safe Cuba.define do on get do on "hello" do res.write "Hello world!" end on root do res.redirect "/hello" end end end
The text was updated successfully, but these errors were encountered:
@tablecell Thanks for reporting this issue. It looks like it's a known bug in Rack: rack/rack#1610
I added a workaround and pushed the version 3.9.3.
Sorry, something went wrong.
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?
No branches or pull requests
/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
The text was updated successfully, but these errors were encountered: