Overview
The Inertia Rails Adapter facilitates the integration of the Inertia.js library with Ruby on Rails applications. By following simple installation instructions and utilizing the provided features, developers can easily implement Inertia responses, share data between components, handle instance props, and optimize rendering performance.
Features
- Easy Integration: Simply add the Inertia Rails gem to your Gemfile for seamless integration.
- Simple Rendering: Render Inertia responses using the inertia renderer in controller methods.
- Instance Props Handling: Define instance props and default render behavior effortlessly.
- Layout Customization: Customize Inertia layouts following Rails conventions.
- Shared Data: Share data across components easily using the shared_data controller method.
- Deep Merging: Opt for deep merging shared data to facilitate overriding default structures.
- Lazy Props: Implement lazy props to optimize loading processes for specific props.
- SSR Support: Enable Server-Side Rendering (SSR) and configure SSR-related settings for enhanced performance.