chore: show browse page without errors

This commit is contained in:
Nelson Jovel 2024-01-26 10:38:45 -08:00
parent f71f88a4ac
commit e4e6a5c7fb
5 changed files with 16 additions and 4 deletions

View file

@ -7,6 +7,7 @@ module Dashboard
def show
@categories = Category.sorted.map { |category| CategoryPresenter.new(category:) }
puts params
@category = CategoryPresenter.new(category: Category.find_by_slug(params[:id]))
end
end