search for: edit_profiles

Displaying 2 results from an estimated 2 matches for "edit_profiles".

Did you mean: edit_profile
2006 Aug 10
2
Authentication: UserEngine or own creation?
...I don''t think that it fits my needs. I rather thought about creating my own system, that does not validate controller/action pairs, but "real" roles and permissions. Semantic code: class profiles_controller < ApplicationController def edit if user.has_right ''EDIT_PROFILES'' or user.belongs_to ''ADMINS'' # do edit stuff else render :partial => ''permission_error'' end end end What do you think about that? Do I miss something or is it really better to create my own authentication system rather than usi...
2007 Nov 18
0
Pseudo resource routes
I added a route mapper called facebook_resources. This allows you to create pseudo-resource routes. Since everything is a POST in Facebook, you can''t identify routes using HTTP verbs. Each route is prefixed with its action, except for index. Example: map.facebook_resources :profiles Will give you the following named routes: new_profile POST /profiles/new profiles POST