Displaying 5 results from an estimated 5 matches for "leevigraham".
2006 Nov 04
0
RESTful controller naming conventions
It is my understanding that originally controller names where singular.
In all the examples of RESTful controllers the names have been
pluralized.
So what is the new convention? Singular or plural controller names?
Leevi Graham
Front End Developer - User Interface Designer
www.leevigraham.com | Skype Me: leevi_graham
MSN Messenger: info@leevigraham.com
Download My VCard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060905/8f33f7d8/attachment.html
2006 Aug 16
1
Naming rights_roles join model using has_many :through and polymorphic associations
...has_and_belongs_to_many :roles
end
NEW TABLES:
users
rights
roles
groups
responsibilites
rights_roles
Has anyone got any comments / corrections / ideas about this one?
Maybe a more suitable join model name than responsibilities
Leevi Graham
Front End Developer - User Interface Designer
www.leevigraham.com | Skype Me: leevi_graham
MSN Messenger: info@leevigraham.com
Download My VCard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/2f44a1f0/attachment.html
2006 Jul 26
3
Polymorphic Association with Single Table Inheritance?
Hello,
is it possible to setup a model/table schema like this:
Groupable --> Membership <-- Group
^ ^
| |
User UserGroup
I tried the following but failed:
Groupable (table with ''type'' column)
has_many :memberships, :as => :groupable
has_many :groups, :through => :memberships
2006 Aug 16
15
OT: finding a designer (bit of a rant)
I''ve written my app already. It outputs valid xhtml and I need a stylesheet
to drop over the top. How hard is it for people to understand that?
It''s a small project, they''d have to do the main design/layout, and then a
little custom styling for some specific elements which don''t appear on every
page. That''s the point of CSS right? write once, use
2006 Aug 16
0
Polymorphic Associations and grouping users and projects
Hi all,
In my app I would like to create user groups in my admin. Currently I
have the following models and associations that facilitate this.
class User < ActiveRecord::Base
has_many :memberships
has_many :groups, :through => :memberships
end
class Membership < ActiveRecord::Base
belongs_to :group
belongs_to :user
end
class Group < ActiveRecord::Base
has_many