Displaying 5 results from an estimated 5 matches for "markabl".
Did you mean:
markaby
2006 Apr 22
0
Is it possible to have one class containing tw
Hello fellow Rail-builders,
Is it possible to declare one class that includes two polymorphic
fields as such:
class Mark < ActiveRecord::Base
# attribute: value, :string
belongs_to :markable, polymorphic => true
end
class Property < ActiveRecord::Base
has_one :name, :as => :markable
has_one :value, :as => :markable
end
?
Based on what I know of the underlying implementation, this looks
impossible. One alternative is to declare artificial classes
PropertyName and Pro...
2006 Mar 09
0
markably in instance_var mungling
this bug is similar to something i see already discussed on why''s
blogpost comments, which was reported fixed, but that was before the gem
was made available (which is what im using since i cant seem to access
the C.WTLS SVN)
my guess is one of 3 things: fix didnt propagate to gem, my own failure
to make an educated guess on proper setup (1), or a genuine bug
essentially,
for
2006 Mar 18
9
Using <%= text_field %> within partials is problematic
All,
Thanks for any help in advance.
I have what I think is a very straightforward partial template and I
can''t figure out why a text_field call within it doesn''t work.
Here is my calling template: lists.rhtml
<div id="target_lists">
<%= render(:partial => "target_lists", :collection => @target_lists)
%>
</div>
In the partial
2006 Dec 07
0
Fwd: win32-service problems with patch
...HANDLE events[2];
+ DWORD index;
+ VALUE result;
+ int status = 0;
+ VALUE EventHookHash;
dwServiceState = 0;
- // Save a couple symbols
- cAdd = rb_intern("add");
- cList = rb_intern("list");
- cSize = rb_intern("size");
+ // use a markable instance variable to prevent the garbage collector
+ // from freeing the hash before Ruby_Service_Ctrl exits, or just
+ // at any ole time while running the service
+ EventHookHash = rb_hash_new();
+ rb_ivar_set(self, rb_intern("@event_hooks"), EventHookHash);
// Event hook...
2011 Jan 05
52
Offline Deduplication for Btrfs
Here are patches to do offline deduplication for Btrfs. It works well for the
cases it''s expected to, I''m looking for feedback on the ioctl interface and
such, I''m well aware there are missing features for the userspace app (like
being able to set a different blocksize). If this interface is acceptable I
will flesh out the userspace app a little more, but I believe the