[Rails] Re: Newbie code review

2015-07-03 Thread Federicko
Thanks for the detailed post. I will definitely check out the gem -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroup

Re: [Rails] Re: Newbie code review

2015-07-03 Thread Federicko
Hi Colin, I have done that but slightly differently as the 'this' variable was giving me an error. Controller didn't change. It still just calls the rankup or rankdown methods in the model. Here's the code for that: def rank @this_article = Article.find(params[:id]) if (params[:rank] ==

Re: [Rails] Re: Re: Re: Migrating a complete Ruby rails app off heroku!

2015-07-03 Thread Mike Simkins
So, this is all because of the Heroku Bamboo retirement (for which there was a years notice anyway) Bamboo had pre-installed gems that will be needed to be added to your Gemfile, with explicit versions Current secure (or semi secure anyway) gems will not target ruby 1.8.7 (Heroku actually used th

Re: [Rails] Overriding association getters

2015-07-03 Thread Мурыгин Антон
Oh yeah, this is because of one gem i use that extends AR in that way. Thanks that you set up fresh app, that helped me. вторник, 30 июня 2015 г., 14:24:02 UTC+3 пользователь Frederick Cheung написал: > > > > On Monday, June 29, 2015 at 7:40:58 PM UTC+1, Мурыгин Антон wrote: >> >> My rails versi

[Rails] Re: Materialize active record object with included associations

2015-07-03 Thread Elizabeth McGurty
Try m = Movie.map(&:genders).includes(:genres) On Thursday, July 2, 2015 at 4:50:55 AM UTC-4, Alexandru Calinoiu wrote: > > Hi > > >I have a basic active query like so: > > > m = Movie.includes(:genres) > > > `m.genders` is an `CollectionProxy` in this case. Is there a way I can > get this a