I think you need .any?
On May 17, 3:50 pm, Stefan Gelenchev wrote:
> First I want to thank the community for their help and here is my
> question :)
>
> I have a simple add to fdavourites functionality. A user can add a post
> to their favouirites. Thing is I want to display the "add to favourite
er.last_sign_in_ip
in the before_create callback.
>
> On Thu, Mar 31, 2011 at 11:04 PM, baldmark wrote:
> > My application creates new records in a nested form. I want to record
> > the ip address that created the record (assuming it was created from
> > the contro
My application creates new records in a nested form. I want to record
the ip address that created the record (assuming it was created from
the controller in this way). How can I do this, given that
request.remote_ip is not accessible in the model?
Mark
--
You received this message because you
3 matches
Mail list logo