1
If you’re looking for view models for rails you should look at Draper: https://github.com/drapergem/draper
It’s pretty easy to roll your own as well, there is nothing to stop you from only exposing one object to your Rails views.
1
The Django trick that simulates Rails’s “automagic variables” is…
quizzes = Quiz.objects.all()
users = User.objects.all()
return render_to_response('about.html', locals())
- [Answered ]-Django check user groups in forms
- [Answered ]-Why doesn't Django allow redirect with context
- [Answered ]-Loading css and javascript files in more then one django templates without having to to re load css and js
- [Answered ]-400 Bad Request in Google Oauth2 for access token
Source:stackexchange.com