El Dorado

A full-stack community web application written in Ruby/Rails
Categories for blog articles « El Dorado « almost effortless
 
Fri, 20 Mar 2009, 07:06am #1
manfredu
Member
Registered: March 2009
Last visit: Sun, 05 Apr 2009
Posts: 16

Is this planned?

Offline
Fri, 20 Mar 2009, 07:29am #2
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

It's tentatively planned, but it's an if/when I have time kind of thing. Not a high priority. I'd happily take a patch, though. It would have to change the way categories work to use STI, so they could be used in the forum or the blog.

Offline
Fri, 20 Mar 2009, 07:47am #3
manfredu
Member
Registered: March 2009
Last visit: Sun, 05 Apr 2009
Posts: 16

Ok. Where could I find out more about STI?

Offline
Fri, 20 Mar 2009, 08:25am #4
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

Are you an experienced Ruby/Rails developer? If not, this might be a little bit of a stretch.

Offline
Fri, 20 Mar 2009, 08:40am #5
manfredu
Member
Registered: March 2009
Last visit: Sun, 05 Apr 2009
Posts: 16

Ruby, yes. Rails not yet, but I want to get more experience with RoR.

Offline
Fri, 20 Mar 2009, 09:11am #6
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

You'll have to dig around on Google more, but here's a quick link to give you the basic idea:

http://rookieonrails.blogspot.com/2008/01/singl...

You'd have to add two subclasses of Category, maybe ForumCategory and BlogCategory, and then add a type field to the categories table. Then, the categories would be saved in the same table, but they'd be of a different type.

If you wouldn't mind, it'd be best if you forked El Dorado on github and then let me know where it's at. That way, I could check out what you're up to and make sure it's as expected and help out.

Offline
Sun, 22 Mar 2009, 05:42pm #7
manfredu
Member
Registered: March 2009
Last visit: Sun, 05 Apr 2009
Posts: 16

My fork is at http://github.com/manfredu/el-dorado/tree/master. I have my development environment set up and also the first version running in production (http://www.d-frage.de/). It would be nice if I could start to work on i18n soon. This would probably be a good way to get familiar with the app before making further changes. I believe categories would also be useful for events and files. A description for files would also be nice.
I'm not sure if we really need different types of categories. Maybe the same categories could just be used everywhere. At least in my case this would make sense. Another option would be to have categories of type 'global', which could be used everyone, and specific ones for blogs, forums, events and files.

Offline