Ask HN: Question about Heroku
I know I could install rails on my own machine and use a better editor but any way inside of heroku to do this?
Thanks
I know I could install rails on my own machine and use a better editor but any way inside of heroku to do this?
Thanks
[+] [-] nikz|17 years ago|reply
Because classes can have new methods added at runtime, individual objects can have methods added or removed at runtime, and so on and so forth, there's no easy way to reflect and grab that information while you're typing.
Having said that, try the following in irb or script/console (not sure how to do that on Heroku)
>> object.methods.sort
>> object.methods.sort.grep /something/
(where /something/ is a regexp representing the name or part of a name of what you're looking for).
Hope that helps!
[+] [-] jreilly|17 years ago|reply
Anyways thanks for the response and I guess I will have to truly learn ruby.
First Note on Rails: has_and_belongs_to_many is painfully long to type.