Skip to content

Commit

Permalink
fix show page
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpeterson committed Nov 27, 2024
1 parent 2f55fb4 commit 72d288f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/cafe_car/application/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-# = render "tab_#{tab}"
- else
= body
= render "debug" if debug?

= page.right
= page.right do
= yield :right
= render "debug" if debug?
1 change: 0 additions & 1 deletion lib/cafe_car/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def model
@model ||= self.class.name.gsub(/.*::|Controller$/, '').singularize.constantize
end


def created_redirect = redirect_back fallback_location: [model_name.plural.to_sym]
def destroyed_redirect = redirect_to [model_name.plural.to_sym]

Expand Down
2 changes: 1 addition & 1 deletion lib/cafe_car/engine.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "chronic"
require "haml"
require "haml-rails"
require "kaminari"
require "image_processing"
require "propshaft"
Expand Down

0 comments on commit 72d288f

Please sign in to comment.