Is it recommanded to create `form_with` with methods (eg. `Note.new`) ?
@nicolasarayacaro36484 жыл бұрын
how is the "edit" controller in the polymorphic assosiation?
@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.
@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
@martinsedoo7365 жыл бұрын
Great example, thanks
@MrUntiendX7 жыл бұрын
Great example, ty!
@sharnieivery25734 жыл бұрын
What's the name of the VS Code theme you're using?