parent
466f3c4cc3
commit
70c5b27a43
@ -0,0 +1,39 @@
|
|||||||
|
class ExerciseController < ApplicationController
|
||||||
|
layout "base_courses"
|
||||||
|
|
||||||
|
before_filter :find_course, :only => [:index,:new,:create]
|
||||||
|
def index
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def show
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def create
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def edit
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def update
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
def find_course
|
||||||
|
@course = Course.find params[:course_id]
|
||||||
|
rescue Exception => e
|
||||||
|
render_404
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,3 @@
|
|||||||
|
# encoding: utf-8
|
||||||
|
module ExerciseHelper
|
||||||
|
end
|
@ -0,0 +1 @@
|
|||||||
|
111111111111
|
@ -0,0 +1 @@
|
|||||||
|
111111
|
Loading…
Reference in new issue