The Community for Technology Leaders
2009 IEEE/ACM International Conference on Automated Software Engineering (2009)
Auckland, New Zealand
Nov. 16, 2009 to Nov. 20, 2009
ISSN: 1527-1366
ISBN: 978-0-7695-3891-4
pp: 590-594
ABSTRACT
Ruby on Rails (or just "Rails") is a popular web application framework built on top of Ruby, an object-oriented scripting language. While Ruby’s powerful features such as dynamic typing help make Rails development extremely lightweight, this comes at a cost. Dynamic typing in particular means that type errors in Rails applications remain latent until run time, making debugging and maintenance harder. In this paper, we describe DRails, a novel tool that brings static typing to Rails applications to detect a range of run time errors. DRails works by translating Rails programs into pure Ruby code in which Rails’s numerous implicit conventions are made explicit. We then discover type errors by applying DRuby, a previously developed static type inference system, to the translated program. We ran DRails on a suite of applications and found that it was able to detect several previously unknown errors.
INDEX TERMS
Ruby, Ruby on Rails, scripting languages, type systems, web frameworks
CITATION

J. An, A. Chaudhuri and J. S. Foster, "Static Typing for Ruby on Rails," 2009 IEEE/ACM International Conference on Automated Software Engineering(ASE), Auckland, New Zealand, 2009, pp. 590-594.
doi:10.1109/ASE.2009.80
95 ms
(Ver 3.3 (11022016))