Search code examples
ruby-on-railsruby-on-rails-3rake

Rails and Rake : .rakeTasks?


What is .rakeTasks file for ?

Rails version : 3.2.1


Solution

  • The .rakeTasks file is created by the IntelliJ IDEA Ruby plugin (and possibly by JetBrains' Ruby-specific RubyMine IDE as well, I'm not sure). As the comments in the file itself state:

    <!--This file was automatically generated by Ruby plugin.
    You are allowed to: 
    1. Remove rake task
    2. Add existing rake tasks
    To add existing rake tasks automatically delete this file and reload the project.
    -->
    

    It provides the list of Rake tasks that appears when you select Tools / Run Rake Task...:

    enter image description here

    Unless you need to customize that list for some reason, you probably never need to edit the file. Personally I exclude it from version control in my .gitignore, along with the .ipr, .iml, and .iws files. (I might check it in if I was working in a homogeneous IDEA shop, but I'm not.)