search for: group_memb

Displaying 20 results from an estimated 32 matches for "group_memb".

Did you mean: group_member
2006 Jun 08
3
has_many :through updates on delete.
...that looks like this: class Actor < ActiveRecord::Base has_many :member_groups, :foreign_key => ''member_id'', :class_name => ''GroupMember'' has_many :groups, :through => :member_groups, :source => :group end class Group < Actor has_many :group_members, :foreign_key => ''group_id'',:dependent => :destroy has_many :members, :through => :group_members, :source => :member end class GroupMember < ActiveRecord::Base belongs_to :group belongs_to :member, :class_name => ''Actor'', :foreign_key...
2006 Jan 28
6
Check if user is in right group
What is the best way of checking this? I have 3 tables: groups users group_members class GroupMember < ActiveRecord::Base belongs_to :group belongs_to :user validates_uniqueness_of :user_id, :scope => "group_id" Then I want a method here that checks if a given user is a member of a given group. What is the right way of doing that? def is_member_of(us...
2012 Jun 18
0
Creating an object with a nested has_many :through relationship
...> belongs_to :group > belongs_to :member > attr_accessible :group_id, :introduction > end If I want to create a subscription of an existing member to an existing group, I do this in the create method of the GroupMember controller, after getting the member and group at first: @group_member = GroupMember.new(params[:group_member].merge(group_id: > @group.id)) > @member.group_subscriptions << @group_member The form just contains an attribute called introduction. This works well. Now, how can I create a Group with a nested subscription for the current user who is fill...
2006 Apr 20
8
Whats the best way to do this?
I have an archive that can have 0 or more extra files associated with it. I would like to be able to edit the associated files info on the same page as the archive info. Listing the extra files info to the edit form is simple enough, but How do I form the text input fields for easy (or automatic) pick-up in the update? Or am I barking up the wrong tree here? -- Posted via
2006 Jun 09
0
Sortable list with non ajax submission
I am trying to create a sortable list that is submitted not with an AJAX call but by a standard form submit button. Right now I have def reorder_group_members @group = Group.find(params[:id]) @group.group_members.each do |member| member.position = params[:memberlist].index(member.id.to_s) + 1 #I get a nil error for this line. It would seem that params[:memberlist] is not getting set. member.save end render :action =&g...
2007 Dec 13
4
Attachment_fu problems on updates
...|format| if @member.update_attributes(params[:member]) .... end end Here is the Member model code: ------------------------- class Member < ActiveRecord::Base validates_presence_of :first_name, :last_name, :city, :region, :region_code has_many :groups, :through => :group_members has_one :photo, :as => "photo_for" validates_associated :photo end Here is the file_system_backend (where the error is occurring): ----------------------------------------------- def full_filename(thumbnail = nil) file_system_path = (thumbnail ? thumbnail_class : self).a...
2015 Sep 25
2
Build of supermin 5 on Ubuntu 14.04 LTS
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether isatty is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is de...
2014 May 29
3
Re: libguestfs error
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether isatty is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is de...
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2016 Aug 18
5
[PATCH v2 0/4] New getprogname module
Hi, as discussed in [1], this series adds a new getprogname module. All it does is providing a getprogname function, much like what is found on e.g. *BSD systems, and using it in gnulib instead of progname. Also, using it explicitly by modules avoids gnulib users the need of either use the progname module (GPL), or to provide program_name (and call set_program_name manually, which is not always
2014 May 29
2
Re: libguestfs error
Hi Rich Yes Rich I have tried libguesftfs on powerpc and it was working fine.For some reason i had to format my hard disk and now when I'm again compiling it,I'm getting following error.... Below is the status of configure .. This is how we have configured the optional components for you today: Daemon .............................. yes Appliance ........................... yes QEMU
2011 Jun 14
1
builder-debian libguestfs FAILED build step 4ee190628bc05f0c8fad1f6d9c3e85619a91e8b8
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2011 Jul 12
0
builder-debian libguestfs FAILED build step c0f72f13c075a754afa7870ecf105138fba821bb
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2011 Jun 21
1
builder-debian libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2011 Jul 08
1
builder-debian libguestfs FAILED build step ebe3d8f43a0ab7f60f3c1c612f117e793179f644
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2011 Jul 19
0
builder-debian libguestfs FAILED build step d82438431c1551610eb7d9945fa76d6387534582
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2011 Jul 15
0
builder-debian libguestfs FAILED build step 1f0c650c8ffdf0602ec74b999f62d3efa6822c96
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2011 Jun 21
0
builder-debian libguestfs FAILED tests e1e78bcef5e4654bd2456bd696840329359d35cd
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...
2011 Jun 07
3
builder-debian febootstrap success d6d144eab55388d4117880f2d3a7e8c2571c9d9a
This is an automatic message generated by the builder on builder-debian for febootstrap. Log files from the build follow below. Linux builder-debian.home.annexia.org 2.6.36-trunk-amd64 #1 SMP Wed Oct 27 14:28:29 UTC 2010 x86_64 GNU/Linux Tue Jun 7 20:00:01 BST 2011 ----- + git pull --rebase git://git.annexia.org/git/febootstrap.git master >From git://git.annexia.org/git/febootstrap *
2011 Jun 14
1
builder-ubuntu libguestfs FAILED tests 4ee190628bc05f0c8fad1f6d9c3e85619a91e8b8
...without a macro... yes checking whether getpagesize is declared without a macro... yes checking whether getusershell is declared without a macro... yes checking whether setusershell is declared without a macro... yes checking whether endusershell is declared without a macro... yes checking whether group_member is declared without a macro... yes checking whether lchown is declared without a macro... yes checking whether link is declared without a macro... yes checking whether linkat is declared without a macro... yes checking whether lseek is declared without a macro... yes checking whether pipe is decl...