I'm using Padrino, a Ruby framework somewhere between Rails and Sinatra, but Reloader didn't work and the controller reloaded but the view didn't reload, so I looked it up.
The cause is that RACK_ENV
was changed to development_xx
.
The solution is to specify the following in app.rb.
enable :reload_templates if RACK_ENV =~ /^development/
Padrino, it's not that big and there's not much information on the web, so it might be the shortest to read that in the source.
Reference: http://sinatrarb.com/intro-ja.html
Recommended Posts