search for: leevi

Displaying 6 results from an estimated 6 matches for "leevi".

Did you mean: levi
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
2007 Jan 24
1
Removing empty class attribute from @template.content_tag
Hey all, I have a quick question regarding the @template.content_tag methos when creating a custom form builder. Currently have the following method in my AccessibleBuilder class: def datetime_select(field, options = {}) required = options.delete :required label = options.delete :label @template.content_tag("div", @template.content_tag( "span", Example Label ) +
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/20...
2006 Aug 16
1
Naming rights_roles join model using has_many :through and polymorphic associations
...elongs_to_many :rights end class Right < ActiveRecord::Base 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/20...
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