Skip to content

Conversation

@davidumoru
Copy link
Contributor

Because

The rest-client gem used in the Kittens API lesson is in maintenance mode and hasn't received updates in years. This PR updates the lesson to use HTTParty, a modern, actively maintained gem that is widely used in the Rails ecosystem.

This PR

  • Replaces global rest-client installation with bundle add httparty to add the gem to the project's Gemfile
  • Changes from using IRB to Rails console for testing API requests
  • Updates all RestClient.get() calls to HTTParty.get()
  • Updates JSON request header syntax from accept: :json to headers: { 'Accept' => 'application/json' }
  • Updates all code examples and variable names to reflect the new HTTParty syntax

Issue

Closes #30456

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • If any lesson files are included in this PR, they follow the Layout Style Guide

@github-actions github-actions bot added the Content: Ruby on Rails Involves the Ruby on Rails course label Dec 10, 2025
@wise-king-sullyman wise-king-sullyman requested review from a team and rlmoser99 and removed request for a team December 11, 2025 20:28
@JoshDevHub JoshDevHub requested review from JoshDevHub and removed request for rlmoser99 December 11, 2025 22:07
Copy link
Contributor

@JoshDevHub JoshDevHub left a comment

Choose a reason for hiding this comment

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

Thank you so much! Great work 🚀

@JoshDevHub JoshDevHub merged commit 616ad92 into TheOdinProject:main Dec 11, 2025
3 checks passed
JoshDevHub pushed a commit to JoshDevHub/curriculum that referenced this pull request Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content: Ruby on Rails Involves the Ruby on Rails course

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rails Course: Kitten API: Use different gem for interacting with the API

2 participants