10 Apr '12, 8am

Ruby on Rails Guides: Performance Testing Rails Applications:

# routes.rb root :to => 'home#index' resources :posts # home_controller.rb class HomeController < ApplicationController def dashboard @users = User.last_ten.includes(:avatars) @posts = Post.all_today end end # posts_controller.rb class PostsController < ApplicationController def create @post = Post.create(params[:post]) redirect_to(@post) end end # post.rb class Post < ActiveRecord::Base before_save :recalculate_costly_stats def slow_method # I fire gallzilion queries sleeping all around end private def recalculate_costly_stats # CPU heavy calculations end end

Full article: http://guides.rubyonrails.org/performance_testing.html#in...

Tweets

Oh my! @drnic you have outdone yourself. Rails ...

drnicwilliams.com 10 Apr '12, 10pm

Instant new Rails applications with the App Scrolls April 10th, 2012 , posted in Announcement , Engine Yard , Ruby on Rail...

Ruby on Rails Guides: Caching with Rails: An ov...

guides.rubyonrails.org 09 Apr '12, 11am

One of the issues with Page Caching is that you cannot use it for pages that require to restrict access somehow. This is w...

[links] How I learned to test my Rails applicat...

everydayrails.com 07 Apr '12, 10am

Controllers are models too, as Piotr Solnica indicated in an excellent blog post . And in Rails applications, they’re pret...

On Railcar: an isolated Rails environment

omgbloglol.com 09 Apr '12, 4pm

On Railcar: an isolated Rails environment Ever since launching Railcar , I’ve been getting a lot of questions about why I’...

What’s New in Edge Rails #16: Week of April 1 –...

afreshcup.com 09 Apr '12, 11am

Week of April 1 - April 7, 2012 Although there were quite a few commits this past week, nearly all of them were to the doc...

Rails

guides.rubyonrails.org 11 Apr '12, 4am

Rails is a web application development framework written in the Ruby language. It is designed to make programming web appl...

Konacha: JavaScript Testing on Rails

rubyflow.com 03 Apr '12, 2pm

Konacha: JavaScript Testing on Rails Posted by joliss on April 03, 2012 — 0 comments For those looking to test heavy (Back...

just set up a brand new Lubuntu VM for Rails (d...

guides.rubyonrails.org 07 Apr '12, 9pm

Please don’t put “feature request” items into GitHub Issues. If there’s a new feature that you want to see added to Ruby o...

"Observers" class UserObserver < ActiveRecord::...

guides.rubyonrails.org 11 Apr '12, 11pm

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and m...

しかし例外クラスを指定する方法は無さそうだな…。save! は、errors[] が空でなけれ...

guides.rubyonrails.org 11 Apr '12, 11pm

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and m...

Scheduled tasks on rails - Ruby Forum:

ruby-forum.com 08 Apr '12, 3am

Douglas, I have been using cron tasks that invoke curl that invokes the routes that perform the periodic tasks for several...

Build a virtual bookshelf of free Ruby and Rail...

everydayrails.com 08 Apr '12, 3am

If you’re just getting into Ruby or Rails now, and looking for some light reading, you’re in luck. Publishers like the Pra...

Am I missing something or is this page laughabl...

guides.rubyonrails.org 01 Apr '12, 2am

The very first parameter, a string, is the text of the link which appears on the page. The second parameter, the options h...

Ruby Forum - Rails I18n:

ruby-forum.com 05 Apr '12, 2am

Subject Author Replies Last post Rails 3.x, Ruby 1.9.x + HAML = Terror? Ramon Cahenzli 2 21 hrs ago by Ramon Cahenzli web ...

I disagree to this pink box #rails Serving the ...

guides.rubyonrails.org 05 Apr '12, 12am

In specific cases, it would make sense to set the locale from client-supplied information, i.e. not from the URL . This in...