Displaying 2 results from an estimated 2 matches for "7ts6kvb0zjk".
2006 Nov 09
2
help with join tables and has_and_belongs_to_many
...t.column :user_id, :integer, :null => false
t.column :privilege_id, :integer, :null =>false
end
admin_priv = Privilege.find_by_name(''admin'')
user_priv = Privilege.find_by_name(''user'')
admin_user = User.find_by_email(''admin-7Ts6kVb0ZJk@public.gmane.org'')
admin_user.privileges << admin_priv
admin_user.privileges << user_priv
anon_user = User.find_by_email(''anon-7Ts6kVb0ZJk@public.gmane.org'')
anon_user.privileges << user_priv # BOMB HERE
end
def self.down
drop...
2007 Jul 18
3
Help. Acts_as_Authenticated plugin stops working for me?
...87ad124e5b",
"updated_at"=>Wed Jul 18 02:47:19 BST 2007,
"remember_token_expires_at"=>nil,
"crypted_password"=>"78dfec22ed3e7418647c7e90e22d0e4e93c5f375",
"id"=>6, "remember_token"=>nil, "email"=>"erv2-7Ts6kVb0ZJk@public.gmane.org",
"login"=>"erv2", "created_at"=>Wed Jul 18 02:47:19 BST 2007},
@new_record=false, @password="000000",
@password_confirmation="000000">:User
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full T...