similar to: Patches awaiting decision

Displaying 20 results from an estimated 2000 matches similar to: "Patches awaiting decision"

2006 Aug 19
1
Re: DB Auditing
On Saturday 19 August 2006 11:25, Jeremy Cowgar wrote: > A recent thread titled "DB record versioning/audit" made me post this > message: > > I''ve created a plugin called "acts_as_logged". There already is acts_as_audited. Michael -- Michael Schuerig mailto:michael@schuerig.de http://www.schuerig.de/michael/
2005 May 27
0
tag, content_tag: are nil-valued options ever useful?
In a number of places in my code I pass options whose value are '''' or nil to one of the tag-generation helper methods. In the HTML this shows up as, e.g. <span class=""> Now, this can be pretty wasteful, but I don''t want to change my evil ways. Thus I''d rather have the framework throw out these options than do it myself. AFAICT, all tag
2005 Aug 13
4
Timing out ajax requests?
Has someone come up with a generic way to handle ajax requests that exceed a certain time? In my concrete case, I have several select boxes for drilling down a hierarchy. When the user clicks an option, the next deeper level is retrieved. To avoid multiple concurrent requests, I disable the select box. As the request may take too long or cause an error, I set a timeout that re-enables the
2005 Aug 22
8
Observing changes to a text field
I''ve noticed that using several TimedObservers (prototype.js) on a page to watch for changes to text fields (haven''t tried forms) can have a non-negligible effect on the CPU cycles used by the browser process. Nothing dramatic, to be sure, but unnecessary. Autocompleter.Base (controls.js) follows a smarter strategy to watch for changes. Currently this functionality is tied
2006 Sep 04
2
"include" versus "extend" - what's the difference
Hi, Just wondering when one would use "include" over "extend"? Both seem to bring in methods to the class no? The context is I''m just trying to understand why both are used with the acts_as_audited plugin: Full extract from plugin (used within here): ================================================== # Copyright (c) 2006 Brandon Keepers # # Permission is hereby
2005 Sep 13
12
PDF views?
I know there''s wiki page on generating PDF[*], but that''s not really what I want. I don''t need to create arbitrary PDF. What I''d like to do is create PDF templates and fill in the blanks. Roughly, I''m looking for functionality akin to the mail merge feature of word processors, including conditional and repeated elements, say, table rows. Michael
2008 Jul 01
0
acts_as_audited on ActiveResource
I came across this awesome plugin used for auditing models. This is an ActiveRecord extension. However I was wondering if I could tweak it a little to make it work for ActiveResource. In case you haven''t heard about acts_as_audited plugin, here is the link to check it out. http://opensoul.org/2006/07/21/acts_as_audited Is there anyone who has experience in similar context? Please help!
2005 Aug 28
8
Save and delete buttons: POST vs. proximity dilemma
I''m in a dilemma: In order to keep GET requests from deleting objects, I''d like to use the button_to helper to get "something" that generates a POST request. Unfortunately, that something is a form and forms can''t be nested. I''d also like to place buttons related to the same form close to each other. At the top are some navigational buttons
2009 Nov 26
4
Is this a bug?
Hello all, while I''m using acts_as_audited(on jruby platform), after vendored the acts_as_audited, it reports some error, line 167, # Start observing the declared classes and their subclasses. def initialize Set.new(observed_classes + observed_subclasses).each { |klass| add_observer! klass } #this line end after some trace shows this one, when observed_classes is empty, will
2006 Jul 28
4
Validation Reflection plugin
The validation reflection plugin adds three things (1) Reflective access to validations - ModelClass.reflect_on_all_validations - ModelClass.reflect_on_validations_for(:property) (2) It provides "declarative" methods for defining validations based on database metadata - validates_presence_of_mandatory_content_columns - validates_lengths_of_string_attributes -
2006 Dec 11
1
Index help on Polymorphic Associations
Hello, I''m a newbie to aaf and rails and I hope anyone can help me with this. I have the following Models: class Project < ActiveRecord::Base acts_as_authorizable acts_as_audited :except => [:created_by, :updated_by ], :user_class_name => ''AuthenticatedSystem'', :user_method => ''current_user'' acts_as_ferret :fields => {:name =>
2005 Aug 02
0
Re: function.prototype.bind return
Ah - thanks Michael. Event.stop is precisely what I was looking for. I can just grab the event object inside the handler that I registered previously and pass it to an Event.stop call, and get exactly what I want. Thanks, Rahul Date: Tue, 2 Aug 2005 16:08:20 +0200 From: Markus Joschko <markus.joschko@gmail.com> Subject: Re: [Rails-spinoffs] Re: function.prototype.bind
2005 Jun 29
2
Unit testing
Recently, I''ve started to write unit tests for some of my scripts. In general,it''s no worse in JavaScript than in Ruby or Java. I didn''t have the courage to try Selenium, but had a look at JsUnit. Unfortunately, in Konqueror it produces unfathomable errors and in Firefox it is slow beyond imagination. Anyway, writing tests for functions that are computational or
2010 Sep 01
2
Undefined methods: has_selector? and flunk
I''m in the process of updating an app for Rails 3.0 and rspec-rails 2.0.0.beta20. When I''m running my specs (rake spec) I get a large number of errors caused by two undefined methods undefined method `has_selector?'' for #<String:0x7fdbd0b5b270> undefined method `flunk'' for
2009 Jan 23
2
[LLVMdev] Reading recommendations?
[I sent this already two days ago, but apparently the message didn't get through. It is not in the archive either.] I've read through the Programmer's Manual, Language Reference, and Kaleidoscope Tutorial, still I'm struggling to get started hands-on with LLVM. This may just be a passing phase and I'm in no hurry, so I'd like to take the time to read up some more on
2005 Aug 17
1
[PATCH] Builder with hash for style attribute
The attached patch transparently extends the Builder from util.js to take an object/hash value for the style attribute. The elements of the hash are then used to set the respective properties of the style object. The purpose of this patch is twofold: (1) Make it easier to use the Builder with generated style properties. (2) I''m not sure if assigning a string to element.style is even
2005 Jul 10
1
Konqueror compatibility
Thomas, currently the script.aculo.us scripts have some workarounds for Safari that should be extended to more generally cover all khtml-based browsers, Konqueror in particular. In prototype.js, there is a workaround for an addEventListener bug that affects Konqueror as well as Safari, controls.js has a similar workaround, and the special case in dragdrop.js doesn''t hurt anyway. In
2005 Sep 13
3
Alternatives to Rico LiveGrid?
I''m no friend of paging, but I have to somehow deal with lists of potentially large numbers of objects. The Rico LiveGrid[*] at first blush seems attractive, but has some major drawbacks. It doesn''t work with Safari/Konqueror, not yet anyway. It can only handle fixed-size tables and requires that widths, including column widths, are hand-crafted. I''m looking for a
2005 Jun 27
0
More scripts
It''s awfully quiet in here... So here''s another bunch of scripts that are heavily inspired by Prototype.js and useful in conjunction with Rails http://www.schuerig.de/michael/javascript/ Please have a look... at the code. There''s nothing visual about the scripts, I happily leave that to Thomas. Michael -- Michael Schuerig Airtight arguments have
2005 Jun 28
2
Problems with repeated calls to setTimeout?
Prototype.js and Thomas''s effects scripts use repeated setTimeout calls for timed looping, for instance in time-based observers. On Konqueror 3.4.1 (possibly other khtml-based browsers, too), these observers reproducibly crash the browser. Just keeping open a browser with such an observer is enough. After some time it invariably segfaults. When I substitute setInterval for setTimeout