I have a simple sinatra app that uses haml and sass for the views. One of the views (located in the views folder) is a partial for my navigation menu. I am trying to render it from index.haml but I get the following error: wrong number of arguments (1 for 2) I am trying to render it with the following lines in index.haml .navigation = render :partial => "nav"
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 like to log "Fetching #{url}". Here's what I'd like: The ability to specify log levels (ex: logger.info("Fetching #{url}")) In development and testing environments, the messages would be written to the co
I am using SSL Requirement to achieve the proper rediects with Devise. I am using custom devise controllers so I am able to drop in the ssl_required in them. Gemfile gem 'bartt-ssl_requirement', '1.2.7', :require => 'ssl_requirement' application_controller.rb class ApplicationController < ActionController::Base protect_from_forgery include ::SslRequirement I also customized the hostname for SSLReq
OK, this is interesting. My use case is that I have a series of links (A tags) on a screen in a WebKit view. To test what events area available, using jQuery 1.3.1, I attached every event listed on this page (even ones that don't make sense) to the links then used the up, down, and enter controls on the Android emulator and noted which events fired in which circumstances. Here is the code I used t
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く