Skip to content
This repository
Browse code

expand tmp:* tasks, and a few more additions in the command line guide

  • Loading branch information...
commit 31b820eef92e218349a4a7f033868fc387a92e5b 1 parent bc9eaf4
Vijay Dev vijaydev authored fxn committed

Showing 1 changed file with 12 additions and 6 deletions. Show diff stats Hide diff stats

  1. +12 6 railties/guides/source/command_line.textile
18 railties/guides/source/command_line.textile
Source Rendered
@@ -381,6 +381,7 @@ Ruby version 1.8.7 (x86_64-linux)
381 381 RubyGems version 1.3.6
382 382 Rack version 1.1
383 383 Rails version 3.1.0
  384 +JavaScript Runtime Node.js (V8)
384 385 Active Record version 3.1.0
385 386 Action Pack version 3.1.0
386 387 Active Resource version 3.1.0
@@ -390,12 +391,12 @@ Middleware ActionDispatch::Static, Rack::Lock, Rack::Runtime, Rai
390 391 Application root /home/foobar/commandsapp
391 392 Environment development
392 393 Database adapter sqlite3
393   -Database schema version 0
  394 +Database schema version 20110805173523
394 395 </shell>
395 396
396 397 h4. +assets+
397 398
398   -You can precompile the assets in <tt>app/assets</tt> using <tt>rake assets:precompile</tt> and remove compiled assets using <tt>rake assets:clean</tt>.
  399 +You can precompile the assets in <tt>app/assets</tt> using <tt>rake assets:precompile</tt> and remove those compiled assets using <tt>rake assets:clean</tt>.
399 400
400 401 h4. +db+
401 402
@@ -460,13 +461,18 @@ h4. +test+
460 461
461 462 INFO: A good description of unit testing in Rails is given in "A Guide to Testing Rails Applications":testing.html
462 463
463   -Rails comes with a test suite called Test::Unit. It is through the use of tests that Rails itself is so stable, and the slew of people working on Rails can prove that everything works as it should.
464   -
465   -The +test:+ namespace helps in running the different tests you will (hopefully!) write.
  464 +Rails comes with a test suite called <tt>Test::Unit</tt>. Rails owes its stability to the use of tests. The tasks available in the +test:+ namespace helps in running the different tests you will hopefully write.
466 465
467 466 h4. +tmp+
468 467
469   -The <tt>Rails.root/tmp</tt> directory is, like the *nix /tmp directory, the holding place for temporary files like sessions (if you're using a file store for files), process id files, and cached actions. The +tmp:+ namespace tasks will help you clear them if you need to if they've become overgrown, or create them in case of deletions gone awry.
  468 +The <tt>Rails.root/tmp</tt> directory is, like the *nix /tmp directory, the holding place for temporary files like sessions (if you're using a file store for files), process id files, and cached actions.
  469 +
  470 +The +tmp:+ namespaced tasks will help you clear the <tt>Rails.root/tmp</tt> directory:
  471 +
  472 +* +rake tmp:cache:clear+ clears <tt>tmp/cache</tt>.
  473 +* +rake tmp:sessions:clear+ clears <tt>tmp/sessions</tt>.
  474 +* +rake tmp:sockets:clear+ clears <tt>tmp/sockets</tt>.
  475 +* +rake tmp:clear+ clears all the three: cache, sessions and sockets.
470 476
471 477 h4. Miscellaneous
472 478

0 comments on commit 31b820e

Please sign in to comment.
Something went wrong with that request. Please try again.