百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

inertia_rails-contrib

> 后端框架
开源

Inertia 的 Rails 适配器的扩展和开发者工具集合。

167 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Inertia 的 Rails 适配器的扩展和开发者工具集合。

InertiaRailsContrib

Community documentation and generators has been upstreamed to the Inertia Rails repository.

Please visit the official Inertia Rails documentation at https://inertia-rails.dev.

From now on we're planning to use InertiaRailsContrib as a playground for new features and ideas. The gem will be updated with new features and improvements, and then the most successful ones will be proposed to the core Inertia Rails repository.

Future plans:

  • Ruby LSP plugin for Inertia Rails
  • Modals support

Stay tuned!

Inertia Rails Contrib is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add inertia_rails-contrib

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install inertia_rails-contrib

InertiaUI Modal Support

InertiaRailsContrib provides support for InertiaUI Modal in the Rails application.

With InertiaUI Modal, you can easily open any route in a Modal or Slideover without having to change anything about your existing routes or controllers.

By default, InertiaUI Modal doesn't require anything from the Inertia Server Adapters, since it just opens modals without changing the URL. However, InertiaUI Modal also supports updating the URL when opening a modal (see the docs on why you might want that: https://inertiaui.com/inertia-modal/docs/base-route-url).

Setup

  1. Follow the NPM installation instructions from the InertiaUI Modal documentation.

  2. Enable InertiaUI Modal, turn on the enable_inertia_ui_modal option in the inertia_rails_contrib.rb initializer:

ruby
InertiaRailsContrib.configure do |config|
  config.enable_inertia_ui_modal = true
end

This will add a new render method inertia_modal that can be used in the controller actions:

ruby
class PostsController < ApplicationController
  def new
    render inertia_modal: 'Post/New', props: { post: Post.new }, base_url: posts_path
  end
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/skryukov/inertia_rails-contrib.

License

The gem is available as open source under the terms of the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyhacktoberfestinertiajsrails

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架