[Rails] Re: How to eager load assocations

2014-05-02 Thread Andrei G.
You can use Group.includes(:users) See here more info http://guides.rubyonrails.org/active_record_querying.html#eager-loading-associations -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] Having trouble overriding bootsrap-sass Gem css with GMaps API accesssed through Gmaps4Rails Gem

2014-04-26 Thread Andrei G
On 26 Apr 2014, at 19:02, Jim Whittaker li...@ruby-forum.com wrote: I am following the Gmaps4Rails tutorial and trying to implement it in a bootstrap framework, but am having problems. The map won't load correctly... See here: http://i.imgur.com/qMiczCe.png. Zooming in function does not

Re: [Rails] Problems with ActionMailer

2013-09-27 Thread Andrei G
On Thursday 26 September 2013 12:15:03 steve ross wrote: I'm having a tough time tracking down why my mail is not being sent from an app I migrated from 3.0 - 3.1 - 3.2. The relevant code sections are in this SO question. My questions here are: 1) Does something just jump out as wrong in my

Re: [Rails] Parameter with the same name as the controller returning the params hash instead of nil

2013-09-07 Thread Andrei G
On Friday 06 September 2013 18:57:02 Tamara Temple wrote: On Sep 6, 2013, at 2:46 PM, Andrei G otzy...@gmail.com wrote: On Friday 06 September 2013 12:22:08 Tamara Temple wrote: On Sep 6, 2013, at 11:08 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 6, 2013, at 10:49 AM, Tamara

[Rails] Parameter with the same name as the controller returning the params hash instead of nil

2013-09-06 Thread Andrei G
Hi, I am having an issue with this code[1]. Testing in cucumber if there is no parameter :shot breaks. Somehow the shout parameter it's returning the whole params hash. This thing happens everytime when the parameter has the same name as the controller. There are any conventions or something?

Re: [Rails] Parameter with the same name as the controller returning the params hash instead of nil

2013-09-06 Thread Andrei G
On Friday 06 September 2013 12:22:08 Tamara Temple wrote: On Sep 6, 2013, at 11:08 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 6, 2013, at 10:49 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 5, 2013, at 2:50 AM, Andrei G otzy...@gmail.com wrote: Hi, I am having