Gaël Deest
Not a member
Gaël Deest's latest activity
Tuesday, April 06 2010
-
Gaël Deest commented at 6:38 PMHi, this might be related. Here is my controller:
class MyControllerController < ApplicationController before_filter { |controller| render :text => c...
-
Gaël Deest commented at 4:06 PMThe 'validates' line should have read:
validates :name, :uniqueness => {:scope => :active}Also, I'm actually using class methods and not true 'scopes', b...
-
Gaël Deest commented at 3:58 PMHere is a (trimmed down, but real life) example. I'm working on a project where my customers will have their own subdomains. Subdomains are represented by a sta...
Sunday, April 04 2010
-
Gaël Deest commented at 1:55 PM -
Gaël Deest created the ticket at 1:54 PMHello,
The 'scope' option of AR's uniqueness validation is quite confusing. Contrary to what one might expect, this option doesn't take a scope, but an (array o...
Thursday, March 18 2010
-
- Tag changed from activeresource, edge to activeresource, edge, patch
Here is a cumulated patch for this issue and the one raised by ticket #4155.
Please tell me if there is any problem with this patch.
-
Gaël Deest commented at 8:09 PMAdding:
def persisted? return !new? endto activeresource/lib/active_resource/base.rb does the trick. I don't know if it's safe to remove new_record? entire...
-
Gaël Deest created the ticket at 6:08 PMAfter submitting a patch for ticket #4155 I realized that using form_for with a new instance of ActiveResource has actually been broken in edge since the follow...
-
- Tag changed from 2, activeresource, patch to 2, 3.0.0.beta, activeresource, patch
-
- Tag changed from 2, activeresource to 2, activeresource, patch
Just made a patch to fix this. This patch makes it possible to use new active resources with form_for, using:
Product.buildinstead of:
Product.newHope this he...