# Newbie question abour Rake

**URL:** <https://www.ruby-forum.com/t/newbie-question-abour-rake/51607>\
**Category:** Rails\
**Created:** [January 4, 2006, 7:39am UTC](https://www.ruby-forum.com/t/newbie-question-abour-rake/51607 "2006-01-04T07:39:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [January 4, 2006, 7:39am UTC](https://www.ruby-forum.com/t/newbie-question-abour-rake/51607/1 "2006-01-04T07:39:18Z")

</div>

I’m learning about rake, and have what is probably a silly question.  
When I run rake from my rails app’s top directory, what rakefile is it  
really running?

I have rails 1.0, and in my top-level directory there is a small file  
called “Rakefile”, which basically just includes a few other files:

require ‘rake’  
require ‘rake/testtask’  
require ‘rake/rdoctask’  
require ‘tasks/rails’

If this is indeed the file that’s being used when I run rake without any  
parameters, then the tasks must be defined in these other files… but I  
can’t find these files on my machine. I’ve looked in my rails app’s  
subfolders, as well as under the directory where the Rails 1.0.0 gem is  
installed on my box, to no avail (though I did find a rather large  
Rakefile there…?)

Can anyone shed a little light or just get me started in the right  
direction?

Thanks!  
Jeff

---

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [January 4, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/newbie-question-abour-rake/51607/2 "2006-01-04T12:36:54Z")

</div>

Am Mittwoch, den 04.01.2006, 07:39 +0100 schrieb Jeff C.:

> require ‘tasks/rails’
> 
> Thanks!  
> Jeff

On my Debian machine i found the file under

/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/rails.rb
