Displaying 2 results from an estimated 2 matches for "meldingsdel".
2006 Mar 22
1
has_many :addresses, :as => :addressable
I just got the Rails Recipies and I''m looking the Recipe 17.
class Person < ActiveRecord::Base
has_many :addresses, :as => :addressable
end
class Company < ActiveRecord::Base
has_many :addresses, :as => :addressable
end
class Address < ActiveRecord::Base
belongs_to :addressable, :polymorphic => true
end
At the beggining I had some problems because
2006 Jul 27
4
roles based authentication
hi!
im trying to implement a role based authentication in my project, but im
writing too many conditions, and i think thats not the right way to
proceed.
i have search in google, but there are a lot of plugins and "tutorials",
and they are always not similar, so i dont understand them.
please could someone help me? maybe with a easy authentication or with a
good/nice tutorial?