Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
10 lines
197 B
Ruby
Executable File
10 lines
197 B
Ruby
Executable File
module ApplicationHelper
|
|
# Convert prince from cents to float
|
|
def format_price(cents)
|
|
(cents.to_f / 100).round(2)
|
|
end
|
|
|
|
# Include flash message helpers
|
|
include FlashMessagesHelper
|
|
end
|