[Rails] Re: Rails newbie asking for help [simple question]

2011-05-17 Thread baldmark
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

[Rails] Re: Recording remote_ip that created a record in a nested form

2011-04-07 Thread baldmark
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

[Rails] Recording remote_ip that created a record in a nested form

2011-03-31 Thread baldmark
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