In the rails console, enter:
ls Model
and it will show all the class and instance methods, as well as associations and a bunch of other cool stuff for that model.
I’ve begun using this in place of these two:
Model.methods
Model.new.methods
Not only because it’s simpler with less typing but it else ends up being much easier to read.
No comments:
Post a Comment