Newbie Q: Making code accessible by controller regardless of action

Hello,

I have a model:

before_filter :get_published_reviews

def get_published_review
    @published_reviews = Review.published
end

oops, typo

...def get_published_reviews...

If you put that at the top of a controller it will be available in all
the actions (if you put it in the application controller it will be
available to all actions in all controllers).

thanks for your help with this. this worked for me.