Class: Spree::Account::ProfileController
- Inherits:
-
BaseController
- Object
- BaseController
- StoreController
- BaseController
- Spree::Account::ProfileController
- Defined in:
- app/controllers/spree/account/profile_controller.rb
Instance Method Summary collapse
-
#edit ⇒ Object
GET /account/profile.
-
#update ⇒ Object
PUT /account/profile.
Methods inherited from StoreController
#current_taxon, #default_products_sort, #permitted_products_params, #products_filters_params, #render_404_if_store_not_exists, #store_filter_names, #store_filter_names_hash
Methods included from Spree::AnalyticsHelper
#analytics_event_handlers, #track_event, #unsupported_event?
Methods included from WishlistHelper
Methods included from PasswordProtected
Methods included from StorefrontHelper
#as_aspect_ratio, #page_description, #page_image, #paths_equal?, #render_storefront_partials, #show_account_pane?, #svg_country_icon, #tailwind_classes_for
Methods included from ThemeConcern
#default_url_options, #set_theme_view_paths
Instance Method Details
#edit ⇒ Object
GET /account/profile
5 |
# File 'app/controllers/spree/account/profile_controller.rb', line 5 def edit; end |
#update ⇒ Object
PUT /account/profile
8 9 10 11 12 13 14 |
# File 'app/controllers/spree/account/profile_controller.rb', line 8 def update if try_spree_current_user.update(user_params) redirect_to spree.edit_account_profile_path, notice: Spree.t(:successfully_updated, resource: Spree.t(:account)) else render :edit, status: :unprocessable_entity end end |