February 2012
1 post
2 tags
Rails Generator Options
I wanted to add/handle options passed to a Ruby on Rails generator I was writing. I looked at the guide, but couldn’t find anything there. I looked at the docs and couldn’t find it there. I looked at the Thor wiki which suggests a “method_options” method, but when I tried to use it I got a NoMethodError. It turned out that I needed to use the “class_option”...
Feb 11th