DEV Community

Discussion on: Sorbet: A Type Checker for Ruby

Collapse
 
k776 profile image
Kieran Pilkington • Edited

I'd love to see how you got Sorbet to work with Rails. I just tried and it didn't pick up any of the columns on the models, so I had 1000s of errors (method not found when calling model columns). I couldn't find any documentation or any quick way to fix.

Thread Thread
 
nickytonline profile image
Nick Taylor • Edited

I was kidding about the PR. 😉 I'm still pretty new to Ruby.

Thread Thread
 
palkan_tula profile image
Vladimir Dementyev

There is a gem which create RBI files for ActiveRecord and URL helpers: github.com/chanzuckerberg/sorbet-r...

Thread Thread
 
willisplummer profile image
willis plummer

up until yesterday the sorbet-rails only supported Rails 5.2 -- but 0.2 release also supports 5.1 .. if you were having issues using it, i'd recommend bumping the version and tryin again