search for: createrol

Displaying 1 result from an estimated 1 matches for "createrol".

Did you mean: createprop
2006 Aug 18
9
Rails is doing what I want - but I don''t understand how.
...y here is my model. class Role < ActiveRecord::Base has_and_belongs_to_many :users has_and_belongs_to_many :rights def self.names names = Array.new() for role in Role.find :all names << role.name end return names end end migration file for reference: class CreateRoles < ActiveRecord::Migration def self.up create_table :roles_users, :id => false do |t| t.column "role_id", :integer t.column "user_id", :integer end create_table :roles do |t| t.column "name", :string end end def self.down...