search for: attrbutes

Displaying 7 results from an estimated 7 matches for "attrbutes".

Did you mean: attributes
2006 Feb 16
10
Confused over Model attrbutes and @ prefix
I''m confused about how attributes work in models. For example: class Page < ActiveRecord::Base attr_accessor :body def foo id # works @id # won''t work IIRC body # won''t work @body #works end end Why doesn''t everything work the same? Joe -- Posted via http://www.ruby-forum.com/.
2012 Aug 08
1
How to build vfs_zfsacl module on Linux platform?
...duplication, compresson and other features of Solaris ZFS v.28. But NFS ACL is not compatible with POSIX ACL, the one type of ACL Samba can use on Linux platform. Acl_xattr and acl_tdb modules cannot solve problem, because it's required a filesytem with POSIX ACL support for storing generic ACL attrbutes. So, can I build vfs_zfsacl module on Linux, or building required Solaris-specific header files? Debian 6 Squeeze x64 Linux 3.4-generic ZfsOnLinux v.0.6.0-rc9 Samba 3.6.6
2006 Jun 10
3
Weird Problem With Active Record
Is it me or is my model getting the created_at from the wrong model! I have a HABTM relationship between Problems and Tags. In one of my controller I do the following: def view @tag = Tag.find_by_name @params[:id] end In my view I do this: <% @tag.problems.each do |problem| %> ... <%= problem.created_at %> ... <% end %> Now, how come the created_at
2008 Apr 11
2
Validating an ActiveRecord object and its has_many :through associations
Considering an object with several has_many :through => associations, what is the ''best'' way to handle validations? As an example: class Student < ActiveRecord::Base # some attrbutes like # :name # :grade # relationships has_many :students_assignment, :dependent => :destroy has_many :assignments, :through => :students_assignment has_many :students_class, :dependent => :destroy has_many :classes, :through => :students_class has_many :students_extr...
2012 Nov 23
2
NIS to SAMBA4 Migration
Hello everyone, I am trying to figure out a way to migrate NIS maps to SAMBA4 (I want to replace NIS with SAMAB4 for a Linux domain. I have researched a fair bit on the web but have not found out any solutions and was hoping I could find some help here. What I have found so far pertains to Windows implementations of Active Directory. Here are my questions. 1) Is it possible with a default
2016 Aug 10
1
File Server member DC ACL permissions
I will choose to use the winbind. Based on the link that Rowland said: https://wiki.samba.org /index.php/Setup_Samba_as_an_AD_Domain_Member I followed the steps as described in the tutorial. I created symlinks. In the main DC I added this line in smb.conf: idmap_ldb: use RFC2307 = yes Changed /etc/nsswitch.conf passwd: files winbind shadow: files group: files winbind hosts:
2006 Aug 19
5
Form helpers don''t work with facade columns?
Hello all, I''ve been trying to use a facade column but I notice that the form helpers don''t seem to respect the facade. In the following example I''m trying to story the prices as Integer values but present them to the user as decimals. class Product < ActiveRecord::Base def price=(new_price) write_attribute(:price, Float(new_price)*100) end def price