REST doubt

Hi
Can any one help is RESTful architecture is only for default
functions like (index,create,update,delete) or we can do for own
functions like

def department
end

def user_list
end

like these functions also is it possible to write RESTful architecture.

use collections in ur root.rb

map.resources :colleges, :collection => {:department => :get,user_list
=>
:get}
i hope it will help u

On Wed, Jul 30, 2008 at 10:50 AM, babu nair <

it’s been beaten to death already, but if you need more than those
default
functions, you should look at designing your application differently. A
department sounds like a separate resource, where you would show a
department, edit a department, list a department, etc…

/users/bphogan/department => shows my department.

/users/ => a user list

RESTful architecture means breaking things down more by resource.
Sometimes
you have more controllers this way.

On Wed, Jul 30, 2008 at 12:20 AM, babu nair <