Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Trying to create a HackerNews clone in Rails

I went through the "Building a Simple Rails App" to build the Treebook app. I'd like to build something similar, a HN clone with votes, threaded comments, users, points, etc.

I wasn't sure how to set up the scaffolding because I wanted to have "submit a link" and "submit a text post" .. do I just create 2 different scaffolds?

I was also wondering if it's possible to add an RSS Feed into the site.. I found "Feedzirra", but I wasn't sure if this is the best option. I want to scrape the RSS feeds links to embed YouTube vids, etc. as posts similar to Reddit.

I'd also like to add user ranks like Admin/Moderator/User maybe with private messaging, moderator messaging, etc. with the option to customize your avatar by your name.

Rails seems like a good choice to build something like this, but I'm still new to it. Thanks for reading.

I also was wondering if I should use Rails 4 or if I should stick on Rails 3 for now..

1 Answer

Zac, rails is a great option for a project like this. At this point rails 3 or 4 both work. Since it sounds like you are more interested in growing your knowledge base. I would go with rails 3.2.13. I believe most of the rails projects on Treehouse are in rails 3. So this should make the learning process easier as you will have something to refer back to. I would also recommend not relying on the scaffolds. Scaffolds can make building an application easier, but I found it helpful to build my models, controllers, views, routes etc. separately to help me better under how the rails frameworks operates.

Thanks for the reply.

I don't fully understand models and controllers still. I'm a frontend designer who primarily designs WordPress themes from scratch. I'm trying to learn the backend of things now. Definitely going to look into building it separately to try to gain more knowledge about the operation first.