Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Tagging Section (Clarity) #442

Open
salmansqadeer opened this issue Feb 20, 2013 · 6 comments
Open

Problem with Tagging Section (Clarity) #442

salmansqadeer opened this issue Feb 20, 2013 · 6 comments

Comments

@salmansqadeer
Copy link

Hey Everyone,

I have been going through this series of Rails tutorials and have absolutely loved them every step of the way. They have been more explanatory then anything else I have tried reading (and believe me I have tried a few) - mostly because you force the reader to write their own controller functions right from the beginning.

I have just reached the section related to tagging - this is the first section of the article where the reader has been asked to add a method to a model (instead of a controller, where up until this point all of the rest of the methods have been added). There is no explanation around why the method is added to the model instead of the controller, and in general this section of the tutorial seems to be less explanatory then the previous sections and more along the lines of "write this and it will just work".

I would suggest that someone write at least an additional section that explains the addition of methods to the model, the theoretical reason why this is done, and the implications that this has on the project (instead of just adding additional methods to the controller).

Thank you to everyone working on this.

Salman

@steveklabnik
Copy link
Contributor

Hey @salmansqadeer,

Thanks! I'm glad you found them useful. :) I'll try to work on this.

@ghost ghost assigned steveklabnik Feb 21, 2013
@burtlo
Copy link
Contributor

burtlo commented Feb 21, 2013

Having taught the content quite a few times now I agree with you @salmansqadeer. The later sections of this tutorial do not follow the conventions of the earlier work done. You will notice a similar trend if you approach the authentication section as it becomes more a step-by-step and this will work for you.

I have some code changes to the tagging section that I want to add to bring in more clarity. When I do that I will update the explanations. @steveklabnik I'll take this on.

@ghost ghost assigned burtlo Feb 21, 2013
@steveklabnik
Copy link
Contributor

🤘 ❤️

@salmansqadeer
Copy link
Author

Awesome thank you so much for jumping on top of this. Im happy to provide any additional feedback when and as possible.

@aweis89
Copy link

aweis89 commented Aug 13, 2013

I was also having some issues with the Tagging section. (I should mention that I love this tutorial in general.)
For some reason the many_to _many relationship is not working for me.
I'm not sure what I did wrong, but the methods aren't working to link the articles to the tags.

I think it would have been helpful to show us how the migration files are supposed to look , as you did in the comment section.

Is there somewhere I could download this project in full so I could examine all the files??

Thanks so much for this amazing tutorial!!

@steveklabnik
Copy link
Contributor

@aweis89 there is one mostly-working version up at jumpstartlab/blogger, but I haven't updated it for Rails 4, so it will be slightly off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants