sinatra
Sinatra Haml: Access object attributes
I´m new to sinatra and haml. I am writing a simple todo application. In the controller I am creating a list of todo-Objects. Every todo has for example the attributes \"title\" and \"priority\". The[详细]
2023-04-01 19:09 分类:问答Architecture for a modular, component-based Sinatra Application
I\'m working on a Sinatra app that contains about 10 different components of functionality.We\'d like to be able to mix and match these components into separate instances of the applicat开发者_JS百科i[详细]
2023-04-01 17:30 分类:问答Javascript array serialized in JSON enclosed in quotes, like a string
In my web application, why do JSON.stringify serialize my Activity\'s Trackpoints array as a string? Notice in the JSON representation on top that the trackpoints array is enclosed in quotes, renderin[详细]
2023-04-01 13:00 分类:问答ruby 1.9, rvm, sinatra and rackup
Gemfile source :rubygems gem \'sinatra\' config.ru require \'app\' run App app.rb require \'bundler/setup\' require \'sinatra\'[详细]
2023-04-01 07:12 分类:问答Mustache & Sinatra - is it possible to omit the view.rb file?
I\'m using the Mustache templating library with Sinatra and the standard way seems to be to create, say, index.mustache under /templates and an associated index.rb that subclasses Mustache in /views.[详细]
2023-04-01 03:15 分类:问答Question using github API
I\'m using the Github API for a personal side project (more specifically, Octokit as a Ruby wrapper for it), and am running into a little trouble. I can\'t seem to figure out how to see the number of[详细]
2023-04-01 00:28 分类:问答Sinatra and environment.rb
I\'m developing a Sinatra-based application and have seen some apps using an environment.rb file in the root of the app with code placed within a configure block. See examples at:[详细]
2023-03-31 22:42 分类:问答when specifice page in url, sinatra not enforcing authentication
If I go in with localhost:4567, I get prompted for username and password, but if I go in with localhost:4567/MyStaticPage.htm, it goes right to that page, i.e., without any authentication (and yes, I[详细]
2023-03-31 19:17 分类:问答How can I test an action that handles exceptions using rack/test on Sinatra?
I want to test this route I made on Sinatra: get \'/party\' do begin party_source.parties rescue Exceptions::SourceNotFoun开发者_如何学GodError[详细]
2023-03-31 05:30 分类:问答Execute script and show output/progress in view [Ruby/Sinatra(Rails)]
I have a deploy script that is called from a helper in my Sinatra app. I want show a \"deploying\" view/page, then exec the script.[详细]
2023-03-30 21:16 分类:问答