This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArgumentError - :renderer not specified: | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/bundler/gems/will_paginate-dc588e6b5b6f/lib/will_paginate/view_helpers.rb:79:in `will_paginate' | |
/Users/Adam/fashion-p/app/views/shared/_brand_list.html.haml:9:in `evaluate_source' | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/gems/tilt-1.3.2/lib/tilt/template.rb:209:in `instance_eval' | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/gems/tilt-1.3.2/lib/tilt/template.rb:209:in `evaluate_source' | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/gems/tilt-1.3.2/lib/tilt/template.rb:144:in `cached_evaluate' | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/gems/tilt-1.3.2/lib/tilt/template.rb:127:in `evaluate' | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/gems/tilt-1.3.2/lib/tilt/haml.rb:24:in `evaluate' | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/gems/tilt-1.3.2/lib/tilt/template.rb:76:in `render' | |
/Users/Adam/.rvm/gems/ruby-1.9.2-p180/gems/sinatra-1.2.6/lib/sinatra/base.rb:563:in `render' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro" | |
font-family: "ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN" | |
font-family: "ヒラギノ角ゴ Pro W6","HiraKakuPro-W6" | |
font-family: "ヒラギノ角ゴ ProN W6","HiraKakuProN-W6" | |
font-family: "ヒラギノ角ゴ Std W8","Hiragino Kaku Gothic Std" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Padrino | |
module Helpers | |
module RenderHelpers | |
## | |
# Partials implementation which includes collections support | |
# | |
# ==== Examples | |
# | |
# partial 'photo/item', :object => @photo | |
# partial 'photo/item', :collection => @photos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let @s='^iscenario "^[A" do^[o^Mend^[V<Up><Up>^[=' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before do | |
if flash[:notice] || flash[:errors] | |
response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate" | |
response.headers["Pragma"] = "no-cache" | |
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
もっと「ホゲホゲ」については: | |
%a{:href=> "http://somesite.com/id/#{@thing.id}/other_path"}>< | |
こちら | |
のリンクで。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# values_to_insert is an array of type | |
# [ | |
# [val1.1, val1.2] | |
# [val2.1, val2.2], | |
# [val3.1, val3.2], | |
# ...etc | |
# ] | |
sql = ActiveRecord::Base.connection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
/ Conditional comment for mobile ie7 http://blogs.msdn.com/b/iemobile/ | |
/[if IEMobile 7 ] <html class="no-js iem7"> | |
/ [if (gt IEMobile 7)|!(IEMobile)]><! | |
%html.no-js | |
/ <![endif] | |
%head | |
%meta{:charset => "utf-8"} | |
%title | |
%meta{:content => "", :name => "description"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### filecache decorator for static storage of rendered templates | |
### | |
def filecache(expires=60): | |
# Set time in seconds to keep file around. | |
# Default is 60 (1 min). | |
def decorator(method): | |
@functools.wraps(method) | |
def wrapper(self, *args, **kwargs): |