Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created a Category model #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Seanwarren77
Copy link
Contributor

advances #2

Seanwarren77 and others added 3 commits October 9, 2024 10:46
Co-authored-by: Anna Headley <hackartisan@users.noreply.github.com>
Copy link
Member

@hackartisan hackartisan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good progress! I left some suggestions inline.


get "/new_categories", to: "categories#new_categories"

resources :categories
Copy link
Member

@hackartisan hackartisan Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need the other 2 get routes if you have this one. reference: https://guides.rubyonrails.org/routing.html#resource-routing-the-rails-default

name: MyString

two:
name: MyString
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll want your test fixtures to have different values, if at some point you use them.

require "test_helper"

class CategoriesControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that there aren't any tests, make sure you run the application in development and can actually create a category from the app's web UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants