This basic Rails application demonstrates how to create a Rails application using the Kontent Ruby SDK and a sample project.
See Build your first Ruby on Rails app for a detailed walkthrough of how the sample application was developed.
- Clone the repository
- Run
bundle install
- Open the app/controllers/application_controller.rb file and set your project ID on this line:
PROJECT_ID = '<your-project-ID>'.freeze
- Run
rails server
. Your application will be accessible at localhost:3000
- Loads articles from Kontent asynchronously via render_async
- Rich text component rendering via
InlineContentItemResolver
- Content item link resolution via
ContentLinkResolver