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!!
@GorailsTV7 жыл бұрын
Hit me up if you have any other topics you'd like explained!
@nathangillespie54212 жыл бұрын
This was a very helpful tutorial. Very easy to follow and explanations we're great! Thanks!
@juilerose7536 жыл бұрын
Very useful tutorial, now I understand the polymorphic relationship. Thank You!
@yojz7 жыл бұрын
So helpful and I love your thinking on this!
@AnaMariaArbelaezLopez2 жыл бұрын
great tutorial, thank you!
@sebastiandelgado13228 жыл бұрын
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.
@stormneurje9 жыл бұрын
Thanks, I found this very helpful, love your videos
@untitledop30719 жыл бұрын
Any great tutorials on Inviting users to a groups in a rails app || at least something relevant to the association?
@GorailsTV9 жыл бұрын
+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.
@javscol7 жыл бұрын
thank you so much, it was a really good way to understand Polymorphic Associations :)
@10tmccarthy9 жыл бұрын
Amazing thank you so much!!
@TheJohnnyBuscemi9 жыл бұрын
Really helpful! Thanks for this
@paz13597 жыл бұрын
how do you we do validate for limitation char and presence ?
@koutanakano14436 жыл бұрын
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!
@koutanakano14436 жыл бұрын
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?
@jabrams36438 жыл бұрын
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!
@GorailsTV8 жыл бұрын
+j abrams Cmd+T on the Mac, it's using the Ctrl-P plugin for Vim.
@jabrams36438 жыл бұрын
+GoRails THANK YOU!
@t00lshed8 жыл бұрын
thanks!
@michael-langat9 жыл бұрын
delete method for the comments?
@ajaybhattit7 жыл бұрын
good stuff
@RAVISHEKHAR18 жыл бұрын
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/