Class OtherController
In: test/functional/other_controller_test.rb
app/controllers/other_controller.rb
Parent: Object

Methods

about   error   rescue_action   show404  

Public Instance methods

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

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

[Source]

    # File test/functional/other_controller_test.rb, line 18
18:                        def rescue_action(e) raise e end

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]