Class: FeedbackAndScreencapsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- FeedbackAndScreencapsController
- Defined in:
- app/controllers/feedback_and_screencaps_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /feedback_and_screencaps POST /feedback_and_screencaps.json.
-
#destroy ⇒ Object
DELETE /feedback_and_screencaps/1 DELETE /feedback_and_screencaps/1.json.
-
#index ⇒ Object
GET /feedback_and_screencaps GET /feedback_and_screencaps.json.
-
#show ⇒ Object
GET /feedback_and_screencaps/1 GET /feedback_and_screencaps/1.json.
Instance Method Details
#create ⇒ Object
POST /feedback_and_screencaps POST /feedback_and_screencaps.json
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/controllers/feedback_and_screencaps_controller.rb', line 26 def create @feedback_and_screencap = FeedbackAndScreencap.new(params[:feedback_and_screencap]) respond_to do |format| if @feedback_and_screencap.save format.html { redirect_to @feedback_and_screencap, notice: 'Feedback and screencap was successfully created.' } format.json { render json: @feedback_and_screencap, status: :created, location: @feedback_and_screencap } else format.html { render action: "new" } format.json { render json: @feedback_and_screencap.errors, status: :unprocessable_entity } end end end |
#destroy ⇒ Object
DELETE /feedback_and_screencaps/1 DELETE /feedback_and_screencaps/1.json
42 43 44 45 46 47 48 49 50 |
# File 'app/controllers/feedback_and_screencaps_controller.rb', line 42 def destroy @feedback_and_screencap = FeedbackAndScreencap.find(params[:id]) @feedback_and_screencap.destroy respond_to do |format| format.html { redirect_to feedback_and_screencaps_url } format.json { head :no_content } end end |
#index ⇒ Object
GET /feedback_and_screencaps GET /feedback_and_screencaps.json
4 5 6 7 8 9 10 11 |
# File 'app/controllers/feedback_and_screencaps_controller.rb', line 4 def index @feedback_and_screencaps = FeedbackAndScreencap.all respond_to do |format| format.html # index.html.erb format.json { render json: @feedback_and_screencaps } end end |
#show ⇒ Object
GET /feedback_and_screencaps/1 GET /feedback_and_screencaps/1.json
15 16 17 18 19 20 21 22 |
# File 'app/controllers/feedback_and_screencaps_controller.rb', line 15 def show @feedback_and_screencap = FeedbackAndScreencap.find(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @feedback_and_screencap } end end |