add before_filter to load resources