Making Chuckslist RESTful

9 views
Skip to first unread message

kyrre

unread,
Apr 25, 2008, 5:55:44 AM4/25/08
to Chuckslist
This turns out to be a lot harder than what I'd expected.

Does anybody feel like helping me?

So far I've created an ads resource in my routes. I've split the
AdsController into an AdsController, a CategoryController and a
ParentCategoryController, and given their methods proper RESTful
names. This deprecates the admin interface with :admin_required
before_filters. The user system I've replaced with that of
Technoweenie's Altered Beast. Mind y'all I've only been doing Rails
for about a month, and I could sure use some help making the actual
controller code harmonize with the changes I've made.

But yeah, this way Chuckslist would become leaner and more elegant.

Let's do this!! :)

kyrre

unread,
Apr 25, 2008, 7:43:29 AM4/25/08
to Chuckslist
http://weblog.rubyonrails.org/2006/7/20/scott-raymond-on-refactoring-to-rest

Gonzo Rails developer Scott Raymond has written an analysis of how he
refactored IconBuffet.com using RESTful routes. It's the most cogent
and compelling description of the benefits of a CRUDdy/RESTful design
that I've seen. He reduced the number of actions in the application by
25%, and reduced the size of his routes file from 16 lines to 3. Isn't
small beautiful?

kyrre

unread,
Apr 25, 2008, 9:06:51 AM4/25/08
to Chuckslist

kyrre

unread,
Apr 26, 2008, 3:38:37 AM4/26/08
to Chuckslist
If anybody can help me, please send me a mail?

kyrre

unread,
Apr 27, 2008, 10:20:38 AM4/27/08
to Chuckslist
For what it's worth, this is what I have so far: http://pastie.org/187540

-- Kyrre
Reply all
Reply to author
Forward
0 new messages