Method: SubjectsController#new

Defined in:
app/controllers/subjects_controller.rb

#newObject

GET /subjects/new



96
97
98
99
100
101
102
103
104
105
# File 'app/controllers/subjects_controller.rb', line 96

def new
  @subject = Subject.new
  @subject.classification_id = @classification.id if @classification
  @subject.subject_heading_type_id = @subject_heading_type.id if @subject_heading_type

  respond_to do |format|
    format.html # new.html.erb
    format.json { render :json => @subject }
  end
end