ecole_eft_app/app/controllers/student/topics_controller.rb

22 lines
332 B
Ruby

# -*- encoding : utf-8 -*-
class Student::TopicsController < ApplicationController
before_filter :auth_admin
layout "student"
def index
@topics = current_suser.topics.order("updated_at DESC").uniq
@topic = @topics[0]
end
def show
@topic = Topic.find(params[:id])
render :layout => false
end
end