Using render

I am using render to redirect to a page. If this page has errors they
get displayed. There are a number of times where I have to call render.
There are also a number of collections on the page

@somecollection = SomeModel.find(:all)

Currently i call each collection with each render statement. This
results in a lot of repeat code. Is there a way to define a method that
will be called each time the page is renderd?

without more information a tactic is hard to provide. but note that
render does not redirect (control). It allows you to, when in some
controller C and action A to choose another .rhtml file to run rather
than the default app/views/C/A.rhtml. To actually redirect control
perform redirect_to … You may also compose combine redirect_to and