Skip to content

Commit

Permalink
Added patrial in show page
Browse files Browse the repository at this point in the history
  • Loading branch information
KseniaGovorun committed Dec 1, 2024
1 parent 98dc032 commit 4f47f52
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/account/calculators_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def index
end

def show
# TODO: fill it
@calculator = Calculator.find_by(slug: params[:slug])

Check warning on line 14 in app/controllers/account/calculators_controller.rb

View check run for this annotation

Codecov / codecov/patch

app/controllers/account/calculators_controller.rb#L14

Added line #L14 was not covered by tests
end

def new
Expand Down
1 change: 1 addition & 0 deletions app/views/account/calculators/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= render "calculators/partials/logo_picture", calculator: @calculator %>
1 change: 0 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
t.bigint "calculator_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "priority", default: 0, null: false
t.index ["calculator_id"], name: "index_formulas_on_calculator_id"
end

Expand Down

0 comments on commit 4f47f52

Please sign in to comment.