- 授权协议: 未知
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: https://github.com/gocardless/coach
软件介绍
Coach 是 GoCardless 开源的另一个 Rails controllers,降低了 Rails 控制器的复杂度。Coach 包括共享行为绑定,系统更健壮;大量测试;提供整个链的静态分析。Coach 只要求你关注每个控制器端点上运行的东西。
GoCardless 已经把所有控制器代码都用 Coach 中间件代替了。
创建简单端点:
module Routes
class Echo < Coach::Middleware
def call
# All middleware should return rack compliant responses
[ 200, {}, [params[:word]] ] end
endend
