Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
%h6{:style =>"margin: 35px 0 0;"}
#cart
#cart_box
=link_to shop_cart_path(:id), :id=> 'cart_box_list' do
=link_to shop_cart_path, :id=> 'cart_box_list' do
=image_tag "shopping_cart.png", :id=> 'cart_box_list_img'
#cart_info
%span Позиций :
Expand All @@ -107,7 +107,7 @@


.cart_control_links
= link_to 'Ваш заказ',shop_cart_path(:id)
= link_to 'Ваш заказ',shop_cart_path, :method => 'get'
= link_to 'Отменить',shop_cart_path(:id),:method => "delete"

.clear
Expand Down
3 changes: 2 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
end

resources :orders, :except => [:new, :update, :edit]
resources :shop_carts,:only => [:update,:destroy,:show]
resources :shop_carts,:only => [:update,:destroy]
match 'shop_cart' => "shop_carts#show", :as => 'shop_cart', :via => 'get'

resources :groups, :only => :show
resources :custom_views, :only => :index
Expand Down