Learning Rails 5: Rails from the Outside In by J. Mark Locklear & Eric J Gruber & Barnabas Bulpett

Learning Rails 5: Rails from the Outside In by J. Mark Locklear & Eric J Gruber & Barnabas Bulpett

Author:J. Mark Locklear & Eric J Gruber & Barnabas Bulpett [Locklear, J. Mark]
Language: eng
Format: azw3
Publisher: O'Reilly Media
Published: 2016-08-11T04:00:00+00:00


[24, 33] in ch11/students05a/app/controllers/students_controller.rb 24: # POST /students 25: # POST /students.json 26: def create 27: @student = Student.new(student_params) 28: debugger => 29: respond_to do |format| 30: if @student.save 31: format.html { redirect_to @student, notice: Student was... } 32: format.json { render :show, status: :created, location: ... } 33: else (byebug)

Figure 11-2. Waiting for a response because the debugger kicked in

The line above the prompt is the next statement to be executed, if you type next. Unsurprisingly, it’s the line right after debugger. If you type list, you can see where you are in the context of your source code:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.