Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
A lot of time I got pissed to find where is the method is defined in the case when there are so many modules or when I checking the source code of a gem.
-
AESCrypt is a simple gem to encryption and decryption in ruby on rails.
-
Previously I wrote a post for saving image as progressive image, continuing the same, here is and another gem to reduce the size of the progressive image.
-
Assume we have two models: User and Image.
-
Last month I joined a new job after a break of almost 4 months.
-
If you find some methods whose definitions are more or less similar, only different by the method name, it may use meta programming to simplify the things to make your model more clean and DRY.
-
According to the law of Demeter, a model should only talk to its immediate association, don’t talk to the association’s association and association’s property, it is a case of loose coupling.
-
Let’s assume we have to parse this hash.
-
It’s pretty good to use active record in ruby on rails, relationships, find_by methods, where queries everything makes your life much simpler as a developer but sooner or later your application becomes slow.
-
Rubygems are the best thing that happened in ruby on rails.