Comments with Polymorphic Associations

  Рет қаралды 20,737

GoRails

GoRails

Күн бұрын

Пікірлер: 26
@dmays67
@dmays67 7 жыл бұрын
OMFG I have been looking for this help for soooooo long! Thank you so much. Sounds like you know your way around Rails a whole bunch more than this n00b. Much appreciated. You have made this guys day!!
@GorailsTV
@GorailsTV 7 жыл бұрын
Hit me up if you have any other topics you'd like explained!
@nathangillespie5421
@nathangillespie5421 2 жыл бұрын
This was a very helpful tutorial. Very easy to follow and explanations we're great! Thanks!
@juilerose753
@juilerose753 6 жыл бұрын
Very useful tutorial, now I understand the polymorphic relationship. Thank You!
@yojz
@yojz 7 жыл бұрын
So helpful and I love your thinking on this!
@AnaMariaArbelaezLopez
@AnaMariaArbelaezLopez 2 жыл бұрын
great tutorial, thank you!
@sebastiandelgado1322
@sebastiandelgado1322 8 жыл бұрын
it's a great idea to make the association using partials and locals, since if you relay on substrings from the url, in order to get the "resource" (Film and Actor) in this case and the id, you can not create or display comments for both of them in the same url and using custom urls, would be a nightmare too.
@stormneurje
@stormneurje 9 жыл бұрын
Thanks, I found this very helpful, love your videos
@untitledop3071
@untitledop3071 9 жыл бұрын
Any great tutorials on Inviting users to a groups in a rails app || at least something relevant to the association?
@GorailsTV
@GorailsTV 9 жыл бұрын
+Manuel Quintanilla You can checkout devise_invitable and as part of creating the invitation you can create the join record between the invited user and the record you want.
@javscol
@javscol 7 жыл бұрын
thank you so much, it was a really good way to understand Polymorphic Associations :)
@10tmccarthy
@10tmccarthy 9 жыл бұрын
Amazing thank you so much!!
@TheJohnnyBuscemi
@TheJohnnyBuscemi 9 жыл бұрын
Really helpful! Thanks for this
@paz1359
@paz1359 7 жыл бұрын
how do you we do validate for limitation char and presence ?
@koutanakano1443
@koutanakano1443 6 жыл бұрын
Hi, your tutorial helped me a lot to create a comment section since I was trying a lot with association method lol. Thank you! But I seem to have a problem with . It shows the block of comments output but these don't display words inside. When I check them in the console, whatever I typed in the comment box and submitted show up with the timeline. But there are only grey boxes displayed for each comment with no words show up on the website. If you could tell me where I should check, that would really help me a lot!
@koutanakano1443
@koutanakano1443 6 жыл бұрын
Also, since my stuff equivalent to your articles and movies have title:string, author:string, and content:text, when I generate the Comment model, I made commentable_type:text. Does this affect the display of comments on the website?
@jabrams3643
@jabrams3643 8 жыл бұрын
hey , great video. Would you mind sharing the hotkey/plugin you use to open files from the Vim command line? (the one where it autofills when you type in the folder name or whatevr) Thank you!
@GorailsTV
@GorailsTV 8 жыл бұрын
+j abrams Cmd+T on the Mac, it's using the Ctrl-P plugin for Vim.
@jabrams3643
@jabrams3643 8 жыл бұрын
+GoRails THANK YOU!
@t00lshed
@t00lshed 8 жыл бұрын
thanks!
@michael-langat
@michael-langat 9 жыл бұрын
delete method for the comments?
@ajaybhattit
@ajaybhattit 7 жыл бұрын
good stuff
@RAVISHEKHAR1
@RAVISHEKHAR1 8 жыл бұрын
thanks for the great tutorial. I have a question wrt the nested question and answer model. I have setup everything as you have described. Comment on the question works fine but on the answer I am getting: undefined method `comments' for nil:NilClass. #routes resources :questions do resources :comments, module: :questions resources :answers, :only => [:create, :destroy, :update] do resources :comments, module: :answers end end Question.show.html.erb: I have placed comment_controller.rb for answer model under questions/answers/
Nested Comments with Ruby on Rails
19:46
CJ Avilla (cjav_dev)
Рет қаралды 3,6 М.
Refactoring Controller Methods in Rails
19:21
GoRails
Рет қаралды 8 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Understanding Active Record Associations
15:16
webcrunch
Рет қаралды 35 М.
How to use Hotwire in Rails
24:26
GoRails
Рет қаралды 57 М.
Rails Concerns vs. Modules and when to use each
13:18
webcrunch
Рет қаралды 2,2 М.
Polymorphic associations with Ruby on Rails - like all the things
20:54
CJ Avilla (cjav_dev)
Рет қаралды 6 М.
Ruby Blocks, Procs, and Lambdas 🦁🐅🐻
25:42
CJ Avilla (cjav_dev)
Рет қаралды 18 М.
Episode #098 - Polymorphic Associations
10:37
Drifting Ruby
Рет қаралды 14 М.
Understanding Ruby on Rails Active Record Migrations
27:30
webcrunch
Рет қаралды 20 М.
Rant: Entity systems and the Rust borrow checker ... or something.
1:01:51
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН