Class: Cartify::AddressesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Cartify::AddressesController
- Defined in:
- app/controllers/cartify/addresses_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 |
# File 'app/controllers/cartify/addresses_controller.rb', line 7 def create @addresses = Cartify::AddressesForm.new(addresses_params) render :index, object: @addresses.errors end |
#index ⇒ Object
3 4 5 |
# File 'app/controllers/cartify/addresses_controller.rb', line 3 def index @addresses = Cartify::AddressesForm.new(user_id: cartify_current_user.id) end |