Class | OtherController
In: | app/controllers/other_controller.rb
Parent: | ApplicationController

Copyright (c) 2006 Logica

### Methods

about error show404

### Public Instance methods

about()

Action info displays information this application

[Source]

        # File app/controllers/other_controller.rb, line 22
    22:   def about
    23:     @version = db_script_version(ENV['EPFWIKI_ROOT_DIR'] + "db/migrate")
    24:     @database_schema = User.find_by_sql('select version from schema_info')[0]
    25:     if  @database_schema.version.to_s == @version.to_s
    26:       @version = nil
    27:     else
    28:       flash.now['warning'] = "Database seems out-of-date. Available scripts are of a higher version. Available is " + @version.to_s + ", installed is " + @database_schema.version.to_s
    29:     end
    30:   end

error()

Action error is redirected to from ApplicationController.resque_action_in_public to display a userfriendly error message

[Source]

        # File app/controllers/other_controller.rb, line 34
    34:   def error
    35:   end

show404()

See routes.rb

[Source]

        # File app/controllers/other_controller.rb, line 38
    38:   def show404
    39:       flash.now['error'] = 'The page you\'ve requested cannot be found.'
    40:       render :action => 'error', :status => 404
    41:   end

[Validate]