Search Results for "decorators-from-scratchautoplay1"
Lessons
Forum Threads
Decorators From Scratch Discussion
17
General
Nailed it. Thanks again Chris - could never find a good explanation on Decorators, hence I never used them, will be sure to use them now!
Daniel Jackson replied
Draper Gem or explicitly use Decorators and Presenters?
0
Rails
Hi, my question is simple that sometimes I have to extend my model with methods that are usually for more advance business logics and sometimes I need some methods that are used in views (not speci...
Ali Ahmed posted
Markdown and Emoji with the html-pipeline gem Discussion
25
General
Awesome episode! I've used https://rubygems.org/gems/p... but html-pipeline looks like a great alternative. Loving the emojis !!
Colin Ambler replied
Refactoring with the Null Object Pattern Discussion
22
General
One thing to watch out for with NullObjects is Relations. Rails recently introduced a Relation#none method which will help in these cases. Imagine a Post has_many Comments, you'd want to create a N...
Sergio Márquez replied
Liking Posts Discussion
96
General
Learned a lot of new things through this post, thank you. Never knew how to properly write a route to a module or the proper architecture for that set up. Very useful stuff. Would have liked to s...
Someone replied
Decorators with the Draper Gem Discussion
3
General
How do you handle something where you're using a foreign key, for example a Commentable concern. Comment has a user as commenter. The User class method works fine, but is there a catch all way to a...
Practical Decorators & Extracting Concepts Discussion
1
General
this is brillant
Matias H. Leidemer replied
Decorating with SimpleDelegator and Modules Discussion
4
General
Hi Chris! Thanks for another great lesson! Something weird happend in the last minutes. There are two videos overlap. ;)
Rodrigo Marques replied