Displaying 3 results from an estimated 3 matches for "find_by_controller_and_action".
2007 Dec 09
4
Help on drying code
Hi all,
Currently I''m having to do this:
def self.authorized_roles(controller, action)
specific = self.find_by_controller_and_action(controller, action)
all_actions = self.find_by_controller_and_action(controller, ''*'')
all_controllers = self.find_by_controller(''*'')
role_ids = []
specific.each do |role_item|
role_ids << role_item.role_id
end
all_actions.each...
2005 Dec 09
7
UserEngine - rake bootstrap aborted
Hi there,
I''ve just installed login_engine and user_engine from the repositories,
followed the setup procedures as documented in:
vendor/plugins/user_engine/README
But I''m getting the following failure:
vince@vaio:~/Projects/Booking$ rake bootstrap
(in /home/vince/Projects/Booking)
rake aborted!
undefined method `edit'' for class `UserController''
2006 Apr 21
1
HABTM - two lists
Does anyone know of a good example somewhere of an implemention for
adding records with HABTM relations that have lots of possibilities.
The best way that I''ve seen it done is where you have two lists
(multiple select lists) where you have the possibilities on the left and
ones you''ve added on the right with arrows to add and delete items. But
the only ways I know how to