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 固有のものではなく、任意の Ruby コードを使用できます。Rails と多くの gem は、移行、cron ジョブ、およびアプリケーション サーバーの外部で実行する必要があるその他のタスクなどに rake を使用します。
Jammit のドキュメントから、これを使用する必要はないようです。必要に応じて、Rakefile で使用する方法の例を示しているだけです。