search for: group_us

Displaying 4 results from an estimated 4 matches for "group_us".

Did you mean: group_s
2007 Dec 12
0
Understanding ResourcesAndRelationships
...our setup needs a bit of cleanup. Forgive me minor errors I''m writing this from scratch now: The following layout: --- File site.pp: import "groups/*" import "users/*" node default{ # I''d like to avoid the following line to be uncommented # include "group_users" include "user_james" } --- File groups/sshallowed_users.pp: class sshallowed_users{ "sshallowed_users": name => "sshallowed", ensure => present } class group_users{ "group_users": name => "users", gid => 1000, ensur...
2005 Dec 14
0
how to get these records in has_and_belongs_to_many relation
...ptaculous/show/SortableListsDemo with ajax, first column the user who arent in the group, the second column those who are in the group. (is cooler than 2 oldschool selectlists ;) ) these are my users: in group: Luc not in group: Nick, Glenn, Andy for the second colum i got this in my controller: @group_users = Group.find(:first, :conditions =>[''firm_id = ? and id = ?'', @firm_id, @selected_group]).users and in rhtml: <% for user in @group_users %> <%= user.first_name %> <br/> <% end %> the output it get: Luc (this is correct for the user who are in t...
2010 Aug 19
1
has_many :through question
...e an association table using the ":through" option in "has_many" but not having success. I have created the necessary migrations of the association tables and run rake db:migrate I have the following model: class Group < ActiveRecord::Base has_many :users, :through => :group_user has_many :invites, :through => :group_invite, :class_name => "User" belongs_to :owner, :class_name => "User" end class GroupUser < ActiveRecord::Base belongs_to :group belongs_to :user end Loading development environment (Rails 2.3.8) >> g = Group.f...
2006 Jul 16
6
using collection_select
hello, supposing i have a User class that contains a Wibble class User < ActiveRecord::Base has_one :wibble end in my view i have <%= collection_select :user, :wibble, Wibble.find(:all), :id, :name %> when i post, i get an error like "Wibble expected, got String" how/where am I supposed to convert this posted wibble_id into a Wibble, or am I using collection_select