Displaying 5 results from an estimated 5 matches for "lb5rsoar10xsdtd".
2006 Aug 19
1
Re: validates_associated
On 8/19/06, Alastair Moore <alastair-mb+lb5rSoAr10XsdtD+oqA@public.gmane.org> wrote:
>
> Hello all,
>
> Having a bit of a problem with validates_associated. I assume I''m missing
> something out but basically got these two models -
>
> class Seller < User
>
> has_one :profile, :foreign_key => ''user...
2006 Aug 25
7
acts_as_ferret with conditions
Hello guys,
Having a slight problem with acts_as_ferret, specifically using a
condition. I have the following code
@results = SupplierProduct.find_by_contents(params
[:search], :conditions => [''area_id = ?'', @area])
and it seems the condition isn''t being applied. Does anyone have any
pointers?
Cheers,
Alastair
------
Alastair Moore
Standards compliant web
2006 Aug 31
1
Peculiar validation error: undefined local variable or method 'fieldWithErrors'
Hello all,
I''m submitting a form with the following field -
<%= p.text_field :postcode, {:class => ''inputMedium''} %>
and on submitting the form I am getting this error -
NameError in Property#create
Showing app/views/property/sell.rhtml where line #52 raised:
undefined local variable or method `fieldWithErrors'' for #<Object:
0x1de968>
2007 Oct 24
1
Attachment_fu and observers/emailing
Hi all,
I''m developing a site where a user can upload their CV/resume with a
profile, and am using restful_authentication for this with
attachment_fu to handle the file uploading.
When a user creates their profile/user account, I''ve got an observer
that will email the site admin with a copy of the uploaded CV. My
user_observer looks something like:
class UserObserver <
2006 Aug 26
3
order of saving/validating
Hi guys,
I''m trying to do some validation on an image upload. Basically I have
a model, Property, which has_many :property_images. I need to check
that one image has been uploaded at least and so it was suggested I
checked the number of images uploaded -
@property.property_images.count > 0. Makes sense.
I''ve added a validation on my Property model, like -
def