I have no idea how to write clear, confident front-end code for my rails app.

If you find yourself repeating code in these in order to setup data
that they all need then you can use before_filter to run that code.

Colin