title: Rails, From Controller to Model or Helper?
body: <p>I have a structure where posts can be used as part of a forum, or they can be used as part of a group. The groups are a new addition, and originally, the forum controller handled listing the forums, but the post controller handled listing the posts within a forum. </p>
  
  <p>Now that we are adding groups which have posts just like forums. I want use the same post list logic for both, but the group and the forum have different layouts, and slightly different access controls. I am thinking the post_controller probably needs to stop handling the listing of the posts.</p>
  
  <p>This would be handled via partials in the group and forum views. But the code which handled the parameter processing and finally calling the model that used to be part of the post controller, where do i put this, from a structural standpoint? Seams to specific for a model. In a helper maybe? </p>