Class | ApplicationController |
In: |
app/controllers/application.rb
|
Parent: | ActionController::Base |
Filters added to this controller apply to all controllers in the application. Likewise, all the methods added will be available for all controllers.
For use as a before filter. Redirects user to index if he is not Admin level or higher. This is a hack...for now
For use as a string concatentation after an SQL query. Automatically completes a query to limit results to those within the given object type (object) of the given id (id). For example, context_condition(‘Table’, 3) limits results to the columns of the table with an id of 3.