develop #3

Merged
kbe merged 227 commits from develop into main 2025-09-16 14:35:23 +00:00
3 changed files with 22 additions and 22 deletions
Showing only changes of commit 6d2a6ed027 - Show all commits

View File

@@ -152,6 +152,11 @@ class OrdersController < ApplicationController
return
end
# For POST requests, increment the payment attempt counter
if request.post?
@order.increment_payment_attempt!
end
redirect_to checkout_order_path(@order)
end

View File

@@ -11,18 +11,13 @@
<div class="hidden sm:flex items-center space-x-8 w-full justify-center">
<%= link_to events_path,
class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %>
Événements
Événements & Afterworks
<% end %>
<%= link_to events_path,
class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %>
Afterworks
<% end %>
<%= link_to "#",
<!-- <%= link_to "#",
class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %>
Concerts
<% end %>
<% end %> -->
</div>
<!-- Authentication -->
@@ -88,18 +83,18 @@
<%= link_to events_path,
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="calendar" class="w-4 h-4 mr-3"></i>
Événements
Événements & Afterworks
<% end %>
<%= link_to events_path,
<!-- <%= link_to events_path,
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="glass-water" class="w-4 h-4 mr-3"></i>
Afterworks
<% end %>
<%= link_to "#",
<% end %> -->
<!-- <%= link_to "#",
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="music" class="w-4 h-4 mr-3"></i>
Concerts
<% end %>
<% end %> -->
</div>
<div class="pt-4 pb-4 border-t border-gray-200">

View File

@@ -13,6 +13,7 @@ Rails.application.routes.draw do
root "pages#home"
# === Devise ===
# Routes for devise authentication Gem
# Bind devise to user
devise_for :users, path: "auth", path_names: {
@@ -50,7 +51,7 @@ Rails.application.routes.draw do
member do
get :checkout
get :invoice
post :retry_payment
match :retry_payment, via: [ :get, :post ]
post :increment_payment_attempt
end
end
@@ -87,7 +88,6 @@ Rails.application.routes.draw do
end
end
# API routes versioning
namespace :api do
namespace :v1 do