A couple of select elements in my JST Template rely on the db to populate choices. Can I pull a rails partial into my template? What is the best way to do this?
For example a partial like this:
_font_faces.html.haml
.font_face
= select("font", "style", Font.all.collect {|f| [ f.name, f.id ] })
The answer to this question is, you don’t want to put that kind of logic into your view anyways. There should be a separate backbone collection made, a font collection, not a call to the db in the view.