search for: create_teacher_resource

Displaying 1 result from an estimated 1 matches for "create_teacher_resource".

2013 Jun 22
4
ActiveRecord::Base.transaction - SystemStackError - stack level too deep:
...@tempfile= #<File:/var/folders/t4/lfmj7mhj52b2krryzh7dj4hh0000gn/T/RackMultipart20130604-29589-2c0seo>>}, "action"=>"create", "controller"=>"resources" } **Controller** def create if current_teacher @resource = ResourceObject.create_teacher_resource(params, current_teacher) end if current_student @resource = ResourceObject.create_student_resource(params, current_student) end if current_admin @resource = Resource.new(params[:resource]) end respond_to do |format| if @resource.success format.html { redirect_to @re...