Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Spree::Core::Engine.routes.draw do
- # Add your extension routes here
- namespace :account do
- resources :orders, only: [:index]
- resources :favourites, only: [:index]
- resources :addresses, only: [:index]
- end
- end
- module Spree
- module Account
- class AddressesController < Spree::StoreController
- before_filter :check_logged_in_user
- def index
- @user = try_spree_current_user
- end
- private
- def check_logged_in_user
- unless try_spree_current_user
- account_addresses__path
- redirect_to spree_login_path
- end
- end
- end
- end
- end
- account_orders GET /account/orders(.:format) spree/account/orders#index
- account_favourites GET /account/favourites(.:format) spree/account/favourites#index
- account_addresses GET /account/addresses(.:format) spree/account/addresses#index
- your_file_name.html.haml
- index.html.haml
- ActionView::MissingTemplate at / .
- Missing partial spree/shared/_google_analytics with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :haml, :jbuilder, :rabl], :versions=>[:v1]}. Searched in:
- * "/Users/sjones/work/cs-spree/app/views"...
Add Comment
Please, Sign In to add comment