update subvalidate in app.rb