how is the "edit" controller in the polymorphic assosiation?
@StuxNETozor5 жыл бұрын
Is it recommanded to create `form_with` with methods (eg. `Note.new`) ?
@augustsbautra7 жыл бұрын
When testing nested controllers that inherit from an abstract controller class is considered, it may be preferable to use a module (stored in app/controllers/concerns) instead of a class. Spec the module when included in a class defined just for the spec, mock routes as needed and get some isolated code. Also, not a fan of instance variable use in controllers, memoizing getter methods preferred.
@sharnieivery25734 жыл бұрын
What's the name of the VS Code theme you're using?
@DriftingRuby4 жыл бұрын
Grub Box dark theme
@douglascrowder3 жыл бұрын
Excellent! I so much appreciate this.
@romenigld6 жыл бұрын
In the case if you want to do two types of Comment in polymorphic association like commentable and commentable type. And in the model Post you want to use two types of comment in the same model Post like one for comment_review (like private) and other comment_public when publish the posts? What's is the better of doing this? Anyone knows?
@dineshpallapa1997 жыл бұрын
Your really awesome. This Drifting Ruby be will get much popularity than railscast