# Trying to automate a task

**URL:** <https://www.ruby-forum.com/t/trying-to-automate-a-task/125956>\
**Category:** Rails\
**Created:** [January 14, 2008, 6:31am UTC](https://www.ruby-forum.com/t/trying-to-automate-a-task/125956 "2008-01-14T06:31:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [January 14, 2008, 6:31am UTC](https://www.ruby-forum.com/t/trying-to-automate-a-task/125956/1 "2008-01-14T06:31:16Z")

</div>

I’d like to automate a task that requires access to my models.  
Specifically, I’d like to fetch some rss feeds and then create model  
objects from them. I initially thought that I could do this with rake,  
but then I realized that rake doesn’t have access to any of the rails  
environments. Can someone tell me the right approach do doing this?

---

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [January 14, 2008, 6:35am UTC](https://www.ruby-forum.com/t/trying-to-automate-a-task/125956/2 "2008-01-14T06:35:22Z")

</div>

oh nevermind. I just found an article that describes how to do this:  
[http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial#rails\_models](http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial#rails_models)
