Displaying 4 results from an estimated 4 matches for "_obj_".
Did you mean:
_objs
2004 Oct 08
0
user interface and documentation of setIs and setAs, some suggestions (S4).
By reading the documentation for _setIs_ I noted that for the same
object three different names are used.
1) the name of the first argument in the functions coerce and replace in
setIs must be _obj_ (see example section or)
setIs("MVCa","list",coerce=function(obj){obj@list},replace=function(obj,value){obj@list<-value})
2) At the same time in the usage section:
setIs(class1, class2, test=NULL, coerce=NULL, replace=NULL,
by = character(), where = topenv(paren...
2006 Feb 28
3
Object#id will be deprecated?
I didn''t get the memo on this :P
members_controller.rb:12: warning: Object#id will be deprecated; use
Object#object_id
Line 12 is:
@member = Member.find(@current_member.id)
How _should_ I be writing that line?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2007 May 17
8
Model: self is not child's parent
Assume a model Parent and another model Child. Child belongs_to Parent
and Parent has_many Children. The following fails:
@
p = Parent.find(:first)
assert p.equal?(p.children[0].parent)
@
It seems odd to me that I and my child''s parent are not the same object.
In fact, this is royally screwing me up. Can anyone tell me why this is
or point me at a relevant discussion, blog posting,
2006 Feb 01
4
Where is the send() function?
Hi,
in the tutorial "4 Days on Rails" the following code fragment is used:
,----
| <% for column in Category.content_columns %>
| <td><%=h category.send(column.name) %></td>
| <% end %>
`----
Apparently, the send() function returns the column value by name, but
where does this function comes from? Unfortunately, neither the tutorial
nor the API