OSDN Git Service

redraw page title
[pettanr/pettanr.git] / app / controllers / top_controller.rb
1 class TopController < ApplicationController
2   if Manifest.manifest.magic_numbers['run_mode'] == 0
3     before_filter :authenticate_user, :only => []
4     before_filter :authenticate_author, :only => []
5   else
6     before_filter :authenticate_reader, :only => [:index, :ap]
7     before_filter :authenticate_user, :only => []
8     before_filter :authenticate_author, :only => []
9   end
10   
11   def index
12     respond_to do |format|
13       format.html { render layout: 'ap' }
14     end
15   end
16   
17   def ap
18     respond_to do |format|
19       format.html { render layout: 'ap' }
20     end
21   end
22   
23 end