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

Implement encyclopedia rails application #299

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

Conversation

lukekrikorian
Copy link

@lukekrikorian lukekrikorian commented Jan 30, 2024

This PR implements the encyclopedia CRUD app, and satisfies the required tests. I made a few design decisions in the process of development which are worth highlighting, in case they need to be corrected:

  1. Article.title and Article.author are both of type string instead of text. This means they're each limited to 255 characters each in some databases, but this limit won't exist in the current SQLite database since SQLite ignores LENGTH restrictions.

  2. Based on the tests in test/models/article_test.rb, I decided to make Article.title and Article.content mandatory fields (see app/models/article.rb). This may be an incorrect choice depending on the external requirements for this project, e.g., if users want to save articles before they think of a title for them.

* Removes an unused CSS class from the application stylesheet
* Removes an unused template variable from the articles controller
* Adds endpoint documentation to the article controller's methods
* Removes the use of HTML entities from the articles index view
* Fixes indentation in the articles show view
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.

None yet

1 participant