Class: CheckoutStatHasManifestationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- CheckoutStatHasManifestationsController
- Defined in:
- app/controllers/checkout_stat_has_manifestations_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /checkout_stat_has_manifestations POST /checkout_stat_has_manifestations.json.
-
#destroy ⇒ Object
DELETE /checkout_stat_has_manifestations/1 DELETE /checkout_stat_has_manifestations/1.json.
-
#edit ⇒ Object
GET /checkout_stat_has_manifestations/1/edit.
-
#index ⇒ Object
GET /checkout_stat_has_manifestations GET /checkout_stat_has_manifestations.json.
-
#new ⇒ Object
GET /checkout_stat_has_manifestations/new GET /checkout_stat_has_manifestations/new.json.
-
#show ⇒ Object
GET /checkout_stat_has_manifestations/1 GET /checkout_stat_has_manifestations/1.json.
-
#update ⇒ Object
PUT /checkout_stat_has_manifestations/1 PUT /checkout_stat_has_manifestations/1.json.
Instance Method Details
#create ⇒ Object
POST /checkout_stat_has_manifestations POST /checkout_stat_has_manifestations.json
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'app/controllers/checkout_stat_has_manifestations_controller.rb', line 41 def create @checkout_stat_has_manifestation = CheckoutStatHasManifestation.new(params[:checkout_stat_has_manifestation]) respond_to do |format| if @checkout_stat_has_manifestation.save flash[:notice] = t('controller.successfully_created', :model => t('activerecord.models.checkout_stat_has_manifestation')) format.html { redirect_to @checkout_stat_has_manifestation } format.json { render :json => @checkout_stat_has_manifestation, :status => :created, :location => @checkout_stat_has_manifestation } else format.html { render :action => "new" } format.json { render :json => @checkout_stat_has_manifestation.errors, :status => :unprocessable_entity } end end end |
#destroy ⇒ Object
DELETE /checkout_stat_has_manifestations/1 DELETE /checkout_stat_has_manifestations/1.json
73 74 75 76 77 78 79 80 |
# File 'app/controllers/checkout_stat_has_manifestations_controller.rb', line 73 def destroy @checkout_stat_has_manifestation.destroy respond_to do |format| format.html { redirect_to checkout_stat_has_manifestations_url } format.json { head :no_content } end end |
#edit ⇒ Object
GET /checkout_stat_has_manifestations/1/edit
36 37 |
# File 'app/controllers/checkout_stat_has_manifestations_controller.rb', line 36 def edit end |
#index ⇒ Object
GET /checkout_stat_has_manifestations GET /checkout_stat_has_manifestations.json
6 7 8 9 10 11 12 13 |
# File 'app/controllers/checkout_stat_has_manifestations_controller.rb', line 6 def index @checkout_stat_has_manifestations = CheckoutStatHasManifestation.page(params[:page]) respond_to do |format| format.html # index.html.erb format.json { render :json => @checkout_stat_has_manifestations } end end |
#new ⇒ Object
GET /checkout_stat_has_manifestations/new GET /checkout_stat_has_manifestations/new.json
26 27 28 29 30 31 32 33 |
# File 'app/controllers/checkout_stat_has_manifestations_controller.rb', line 26 def new @checkout_stat_has_manifestation = CheckoutStatHasManifestation.new respond_to do |format| format.html # new.html.erb format.json { render :json => @checkout_stat_has_manifestation } end end |
#show ⇒ Object
GET /checkout_stat_has_manifestations/1 GET /checkout_stat_has_manifestations/1.json
17 18 19 20 21 22 |
# File 'app/controllers/checkout_stat_has_manifestations_controller.rb', line 17 def show respond_to do |format| format.html # show.html.erb format.json { render :json => @checkout_stat_has_manifestation } end end |
#update ⇒ Object
PUT /checkout_stat_has_manifestations/1 PUT /checkout_stat_has_manifestations/1.json
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'app/controllers/checkout_stat_has_manifestations_controller.rb', line 58 def update respond_to do |format| if @checkout_stat_has_manifestation.update_attributes(params[:checkout_stat_has_manifestation]) flash[:notice] = t('controller.successfully_updated', :model => t('activerecord.models.checkout_stat_has_manifestation')) format.html { redirect_to @checkout_stat_has_manifestation } format.json { head :no_content } else format.html { render :action => "edit" } format.json { render :json => @checkout_stat_has_manifestation.errors, :status => :unprocessable_entity } end end end |