How to avoid reserved keywords in rails
How do you know whether a word is reserved or not?
So I’m always on the look out for new and innovative ways to stuff up my rails apps. Recently I by chanced name a model something I should not have.
Now I’ve found a way to minimise your chances of doing that.
You can go to this site and search.
Personally I think that rails should check for this prior to generating a resource etc.
http://reservedwords.herokuapp.com/words?utf8=%E2%9C%93&q%5Bword_or_notes_cont%5D=
Enjoy it!
Ben
Written on January 30, 2017