[Rails] Re: Advanced ActiveRecord tutorials

2014-02-26 Thread R. Francky
Here's a list of articles on advanced ActiveRecord, quite old but I think they are still relevant. http://railscasts.com/episodes/215-advanced-queries-in-rails-3?view=asciicast http://railscasts.com/episodes/239-activerecord-relation-walkthrough?view=asciicast

[Rails] Rails 4 Devise and send_data with ActionController::Live

2014-01-16 Thread R. Francky
Hi my friends, Recently I was setting up a Rails 4 app and did some server sent event within. 1/ There was a bug when I did the usual before_filter :authenticate_user as long as I include ActionController::Live module in any controller class. I ended up moving auth logic in the routes with

[Rails] Re: Add List to List

2014-01-16 Thread R. Francky
Which list would you mean ? Are you talking about ruby collection or HTML list ? On Wednesday, January 15, 2014 8:12:36 AM UTC+3, meva soa wrote: Hi Buddy :) Please, someone can explain me how can I *add a list of objects to the another list.* Thank you guys ! -- You received this

[Rails] How to get Rails.root in gem code

2012-02-16 Thread R. Francky
Hi all, While coding a gem for Rails 3.x app stress testing, I faced a problem when I'm trying to load the test files. Those files are located in #{Rails.root}/test/performance/stress directory. My gem provides a command in MY_GEM_PATH/bin/my_gem_name which loads and execute those test files