rails-like rendering