https://github.com/kentico-ericd/kontent-ruby-rails-sample
A sample Rails application displaying items from Kontent by Kentico with the Ruby SDK
https://github.com/kentico-ericd/kontent-ruby-rails-sample
kentico-kontent rails ruby ruby-on-rails
Last synced: 10 months ago
JSON representation
A sample Rails application displaying items from Kontent by Kentico with the Ruby SDK
- Host: GitHub
- URL: https://github.com/kentico-ericd/kontent-ruby-rails-sample
- Owner: kentico-ericd
- License: mit
- Created: 2021-09-20T23:31:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-21T15:12:12.000Z (almost 5 years ago)
- Last Synced: 2025-04-09T12:22:53.237Z (about 1 year ago)
- Topics: kentico-kontent, rails, ruby, ruby-on-rails
- Language: Ruby
- Homepage: https://docs.kontent.ai/tutorials/develop-apps/get-started/run-sample-app?tech=ruby
- Size: 1.07 MB
- Stars: 1
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[](https://discord.gg/SKCxwPtevJ) [](https://stackoverflow.com/tags/kentico-kontent)
# Kontent Rails Sample Application
This basic Rails application demonstrates how to create a Rails application using the [Kontent Ruby SDK](https://github.com/Kentico/kontent-delivery-sdk-ruby) and a [sample project](https://docs.kontent.ai/tutorials/manage-kontent/projects/manage-projects#a-create-a-sample-project).
See [Build your first Ruby on Rails app](https://docs.kontent.ai/tutorials/develop-apps/get-started/build-your-first-app?tech=ruby) for a detailed walkthrough of how the sample application was developed.

## Install & Run
1. Clone the repository
1. Run `bundle install`
1. Open the __app/controllers/application_controller.rb__ file and set your project ID on this line:
`PROJECT_ID = ''.freeze`
1. Run `rails server`. Your application will be accessible at __localhost:3000__
## Features
- Loads articles from Kontent asynchronously via [render_async](https://github.com/renderedtext/render_async)
- Rich text component rendering via [`InlineContentItemResolver`](https://github.com/Kentico/kontent-delivery-sdk-ruby#resolving-inline-content)
- Content item link resolution via [`ContentLinkResolver`](https://github.com/Kentico/kontent-delivery-sdk-ruby#resolving-links)