25 Apr '13, 7am

@__gfx__ はい、いわゆるSinatraのClassic style(トップレベルでgetなどを使う)場合はrequireだけで設定されます。複数ファイルがある場合は also_reload というメソッドが定義ます

This extension is part of the Sinatra::Contrib project. Run gem install sinatra-contrib to have it available. Sinatra::Reloader Extension to reload modified files. Useful during development, since it will automatically require files defining routes, filters, error handlers and inline templates, with every incoming request, but only if they have been updated. Usage Classic Application To enable the reloader in a classic application all you need to do is require it: require "sinatra" require "sinatra/reloader" if development? # Your classic application code goes here... Modular Application To enable the reloader in a modular application all you need to do is require it, and then, register it: require "sinatra/base" require "sinatra/reloader" class MyApp < Sinatra::Base configure :development do register Sinatra::Reloader end # Your modular application code goes here... end C...

Full article: http://www.sinatrarb.com/contrib/reloader.html

Tweets

sinatra/json しようとして よんでるけど無慈悲な "NameError: unin...

sinatrarb.com 25 Apr '13, 7am

This extension is part of the Sinatra::Contrib project. Run gem install sinatra-contrib to have it available. Sinatra::JSO...

Be part of a landmark citizen science paper on ...

skepticalscience.com 25 Apr '13, 3pm

Be part of a landmark citizen science paper on consensus Posted on 25 April 2013 by John Cook UPDATE: we have reached our ...

Bitcoin takes an important step toward becoming part of every web browser on the planet

Bitcoin takes an important step toward becoming...

QZ.com 25 Apr '13, 1pm

A funny thing just happened: virtual currency bitcoin has now passed the first round of approval required to become a stan...

HGH and Hypothyroidism: Part II of our panel de...

flotrack.org 24 Apr '13, 5pm

Part II of the panel discussion on hypothyroidism goes into more depth about the specifics and possible benefits of synthe...

Energy Efficiency Finds Its Cell Phone, Part II

renewableenergyworld.com 23 Apr '13, 1pm

If you’re an energy efficiency geek and your refrigerator breaks down, you probably think, “Yes! A chance to buy a new sup...

Travelling with the toddler to Kyoto, Japan, Part 2

Travelling with the toddler to Kyoto, Japan, Pa...

chubbyhubby.net 25 Apr '13, 1am

I had read about Popeye in a Japanese magazine devoted to cafes in Kyoto. “Read” may be stretching the truth a bit since I...

LASIK at Shinagawa - Part 2

lesterchan.net 22 Apr '13, 12am

Before The Day of Operation You should not wear soft contact lenses for 3 days, soft toric contact lenses for 7 days and h...

#SenchaTouch BDD using @JasmineBDD (Part 2) via...

pivotallabs.com 26 Apr '13, 5pm

A multi-part series of articles on how to test Sencha Touch applications. It uses Jasmine for unit testing and Siesta for ...

Don't Get Caught in the Tool Worship Trap, Part...

cadalyst.com 24 Apr '13, 4pm

In the previous edition of the CAD Manager’s Newsletter , I pondered why so many upper management teams think that new CAD...

Why You – Yes, You – Should Be Rubbing Oil All Over Your Face: A Four-Part Series #FeelgoodStyle

Why You – Yes, You – Should Be Rubbing Oil All ...

feelgoodstyle.com 25 Apr '13, 4am

The same is true when it comes to oils in skin care. After all, your skin is an organ of the body – the largest, in fact –...

Travelling with the toddler to Kyoto, Japan, Part 1

Travelling with the toddler to Kyoto, Japan, Pa...

chubbyhubby.net 24 Apr '13, 12am

Nara was the capital of Japan from 710 to 784. It’s a small city that is easy for tourists to navigate their way around. I...