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

trailblazer-rails

> 编程语言
开源

Rails 的开拓者。

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

工具介绍

Rails 的开拓者。

Trailblazer::Rails

Trailblazer in your Rails controllers.

Endpoint

This gem is slowly being superseded by TRB's endpoint gem. Endpoints are "controller operations" that invoke your business logic operation. They are much easier to use and customize and are explained in part II of the BUILDALIB book.

Overview

trailblazer-rails helps you with the following.

  • Running operations in your controller actions.
  • Minimalistic integration tests ("smoke tests") to test controller/operation wiring.
  • Rendering cells instead of an ActionView in a controller action.

Please refer to the full documentation for more.

Installation

Add this line to your application's Gemfile:

ruby
gem 'trailblazer-rails'

Note that the 2.x version only runs with TRB >= 2.1.0.

Setting flags

Before trailblazer-rails 2.3.0 you could activate or disable the trailblazer-loader gem. In versions >= 2.3.0 this component has been removed in favor of Rails autoloading.

  • config.trailblazer.enable_loader = false to disable Trailblazer loader (default TRUE)
  • config.trailblazer.enable_tracing = true to enable tracing when using run (default FALSE)

Testing

If you feel like contributing, you can run the test suite per Rails version as follows.

$ BUNDLE_GEMFILE=gemfiles/rails_7.0.gemfile bundle exec rake db:create db:schema:load test

Successful merges will be rewarded with at least one beer!

License

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Ruby

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言