concept this line in category rails

appears as: this line, This line
Rails 3 in Action

This is an excerpt from Manning's book Rails 3 in Action.

Rails keeps track of the last migration that was run by storing it using this line in the db/schema.rb file:

Your tests then run against this application, which has your engine mounted inside the test/dummy/config/routes.rb file with this line:

mount Forem::Engine => "/forem"

This line mounts the routes of your engine (not yet defined) at the /forem path of your application. This means that whenever you want to access this engine, you must prefix the route with /forem. If you are in code, you can use the forem. prefix for the routing helpers, as seen earlier with forem.forums_path or forem.root_path within the dummy application.

To make these tasks available for your engine, you can put this line at the bottom of your Rakefile:

Bundler::GemHelper.install_tasks

When you run rake -T, you’ll see that you’ve got a few tasks for your engine, some of which you’ve already used. This line that you’ve put in the Rakefile will add the build, install, and release rake tasks.