[RUBY] If VIEW (template) is not reloaded by changing RACK_ENV at the time of development with Padrino, enable reload_templates.

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

If VIEW (template) is not reloaded by changing RACK_ENV at the time of development with Padrino, enable reload_templates.
[Rails] When the layout change of devise is not reflected
rails AWS deployment is not reflected
rails new app is not created with app name
[Rails] How to edit and customize devise view and controller
Implement devise edit page
[Rails] Register by attribute of the same model using Devise
[Rails] Introduction of devise Basics
What is Rails gem devise?
[Rails] fields_for is not displayed
[Rails] Introduction of Rubocop by beginners
[Rails] [Devise] Edit profile without password
Data is not registered in Rails.
Create My Page with Rails devise
If VIEW (template) is not reloaded by changing RACK_ENV at the time of development with Padrino, enable reload_templates.
At the time of dialogReturn event, I checked because it is not updated even if I specify a component with update