rack
How do you store and access session data in a rack based application
How do you store an开发者_C百科d access session data in a rack based application. I am building a rack based application in ruby, i need to store data in session how do I do it?That\'s quite an open q[详细]
2023-03-07 15:01 分类:问答Selectively allow some urls through Rack::Auth::Basic
I\'ve set up a blog that I\'d like to be minimally secured (i.e., I just want to keep out random people I don\'t know, I\'m not trying to implement NSA-like security measures). I\'m using toto with Ra[详细]
2023-03-07 01:10 分类:问答Rails 3: Insert HTML-Snippets into responses within a gem
I do have a question concerning the development of a gem for Rails 3. I would like to insert specific HTML snippets/partials/fragments (e.g. a form or an image on a fixed position) into every HTTP ge[详细]
2023-03-06 06:17 分类:问答install do_postgres with bundle
I have created a Gemfile in my rack application (that previously used .gems). When I run \"bundle\" I have the following error linked to \"do_postgres\". I do remember having installed postgres on my[详细]
2023-03-05 15:51 分类:问答Logging in Sinatra?
I\'m having trouble figuring out how to log messages with Sinatra. I\'m not looking to log requests, but rather custom messages at certain points in my app. For example, when fetching a URL I would li[详细]
2023-03-05 13:36 分类:问答Why are top-level methods defined in config.ru not accessible to Sinatra::Application?
If I have a config.ru file like this: def my_method 1+2 end require \'my_sinatra_app\' run Sinatra::Application[详细]
2023-03-04 16:52 分类:问答How do I update rack when using rails 3? Bundler won't let me!
I\'m getting the following error when using a file_field_tag: EOFError (bad content body). This is a known error, and the solution is to update rack-mount.[详细]
2023-02-28 21:28 分类:问答Rails encoding of cookie not compatible with JavaScript decodeURIComponent
jquery.cookie retrieves value by using decodeURIComponent . https://github.com/carhartl/jquery-cookie/blob/master/jquery.cookie.js#L89[详细]
2023-02-28 07:02 分类:问答Rackup another rack app from within Rails rake task
I need to start a sinatra app from within a Rails task. Unfortunately whenever I call system(\"shotgun\") or system(\"rackup\") I get weird conflicting errors. When I start them normally from within b[详细]
2023-02-28 05:26 分类:问答rspec error:uninitialized constant MockRequest
[root@cg sinatra-blog]#rspec app_spec.rb F Failures: 1) b开发者_StackOverflow社区log should show index correctly[详细]
2023-02-26 20:39 分类:问答