Class: AdminController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin_controller.rb

Overview

@File Name : admin_controller.rb @Company Name : Mindfire Solutions Private Limited @Creator Name : Vikram Kumar Mishra @Date Created : 2012-06-05 @Date Modified :

@Last Modification Details :
@Purpose                   : To check current user's access, It is yet to implement.

Instance Method Summary collapse

Instance Method Details

#render_404Object

Returns : None.

Returns:

  • : None



42
43
44
45
46
47
48
49
50
51
52
53
# File 'app/controllers/admin_controller.rb', line 42

def render_404

  # render data in different format
  respond_to do |format|

    format.html { render :file => "#{Rails.root}/public/404.html", :status => :not_found }
    format.xml  { head :not_found }
    format.any  { head :not_found }

  end # end respond_to block

end