Set env vars

I created a post_to_twitter method in dashboard_index.rb.  An ok place to put such a method?  Still getting a feel for what belongs in a controller, would love some guidance as to where to store a method like that (post_to_twitter is called when a specific form is submitted on the dashboard controller's index page)