Lawrence Pit
Not a member
Lawrence Pit's latest activity
Monday, July 21 2008
-
Lawrence Pit commented at 2:51 AMI think you need to test whether the hidden field already exists or not. This is because the form can have a custom onsubmit handler (doing some ajax stuff for...
-
- Title changed from submit_tag :confirmation bug to submit_tag :confirm bug
Saturday, July 19 2008
-
Lawrence Pit commented at 11:42 AMAh yeah, sorry, the example in this ticket should indeed use :confirm. The patch is correct though. I like the return true to be explicit.
-
Lawrence Pit created the ticket at 6:54 AMWhen doing any of the following:
submit_tag "Save", :onclick => "alert('x');", :confirmation => "Sure?" submit_tag "Save", :disable_with => "Saving..."...
Tuesday, July 15 2008
-
-
Lawrence Pit created the ticket at 2:51 AMThis patch allows the following:
Account.find_last_by_limit(50) Account.find_first_by_limit(50)
Monday, July 14 2008
-
Lawrence Pit commented at 3:17 AMjust thinking, maybe we should add this method to OrderedHash? :
def is_a?(o) o == Hash endLast patch implements this. Simplifies deep_merge.
-
Lawrence Pit commented at 3:01 AMAttached version with deep_merge.
The code of deep_merge is a bit ugly though... You need to test for :to_hash for it to work with with_options, because Order...
Thursday, July 03 2008
-
Lawrence Pit created the ticket at 7:20 AMWhen :include is used with a find (or defined within a scope), like for example:
Project.scoped({:include => categories}).find(:limit => 15)then executio...
Sunday, June 29 2008
-
Lawrence Pit commented at 12:40 AMNow that Pratik mentions it, I agree with what he's saying. The things within a condition hash should always refer to actual table and column names.