dawarich/app/views/trips
Claude b1cbb5555f
Refactor: Apply Rails best practices to trip sharing implementation
- Remove unused @is_public_view variable from controller
- Simplify conditionals by leveraging methods that return [] when empty
- Move public view from trips/public_show to shared/trips/show (Rails conventions)
- Refactor trips#update to be HTML-only (remove JSON responses)
- Convert sharing form to use proper Rails form helpers
- Move JS controller to shared/ subdirectory with proper namespacing
- Create RSpec shared examples for Shareable concern to eliminate duplication
- Update request specs to match HTML-only controller behavior
- Apply 'render/redirect ... and return' pattern for early returns
2025-11-07 12:05:34 +00:00
..
_countries.html.erb Show visited countries in a modal window on the Trip page 2025-10-07 21:49:58 +02:00
_distance.html.erb Fix request to a user in partial 2025-07-26 12:37:46 +02:00
_form.html.erb Properly provide default distance unit in user settings 2025-10-20 19:42:24 +02:00
_path.html.erb Properly provide default distance unit in user settings 2025-10-20 19:42:24 +02:00
_sharing.html.erb Refactor: Apply Rails best practices to trip sharing implementation 2025-11-07 12:05:34 +00:00
_trip.html.erb Properly provide default distance unit in user settings 2025-10-20 19:42:24 +02:00
edit.html.erb Fix margins on some pages 2024-11-28 15:54:36 +01:00
index.html.erb Move trip to partial 2024-11-28 16:11:04 +01:00
new.html.erb Fix margins on some pages 2024-11-28 15:54:36 +01:00
show.html.erb Implement public trip sharing with Shareable concern 2025-11-05 15:44:27 +00:00