What is Rakefile? in the root /Rakefile
To get Jammit working, You need to add the following to the Rakefile
require 'jammit'
Jammit.package!
Why is that? What does that do exactly? thxs
What is Rakefile? in the root /Rakefile
To get Jammit working, You need to add the following to the Rakefile
require 'jammit'
Jammit.package!
Why is that? What does that do exactly? thxs
http://rake.rubyforge.org/files/doc/rakefile_rdoc.html
在 Rails 中,Rakefile 允许您使用应用程序的环境运行任务。rake 还有很多其他非 Rails 有用的东西。它不是特定于 Rails 的,您可以在其中使用任何 Ruby 代码。Rails 和许多 gem 使用 rake 来完成迁移、cron 作业和任何其他需要在应用程序服务器之外运行的任务。
从 Jammit 文档看来,似乎没有必要使用它。如果您愿意,他们只是向您展示如何在 Rakefile 中使用它的示例。