02 May '13, 4am

これ、使えないのかな・・・?

# 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

Tweets

Since Rails 4.0's release is imminent, here's t...

edgeguides.rubyonrails.org 02 May '13, 2am

The best way to be sure that your application still works after upgrading is to have good test coverage before you start t...

Riding Rails: Rails 4.0: Release Candidate 1 re...

weblog.rubyonrails.org 02 May '13, 1am

Just in time for the opening of RailsConf, we managed to push out the first release candidate of Rails 4.0. This incorpora...

How I learned to #test my #Rails applications, ...

everydayrails.com 27 Apr '13, 2pm

That said, early Rails books and tutorials focused more on speed (build a blog in 15 minutes!) than on good practices like...

@SplendidSpoon Testing is hard. I still kind of...

everydayrails.com 01 May '13, 7pm

Write tests to test functionality you’re pretty confident works because you’ve been using it for awhile without tests. Thi...

Rails 4.0: Release Candidate 1 released!

weblog.rubyonrails.org 02 May '13, 6am

Just in time for the opening of RailsConf, we managed to push out the first release candidate of Rails 4.0. This incorpora...

Rails 4.0: Release Candidate 1 released!

weblog.rubyonrails.org 02 May '13, 6am

Just in time for the opening of RailsConf, we managed to push out the first release candidate of Rails 4.0. This incorpora...

Rails 4.0: Release Candidate 1 released

weblog.rubyonrails.org 01 May '13, 9pm

Just in time for the opening of RailsConf, we managed to push out the first release candidate of Rails 4.0. This incorpora...

Tá chegando a hora. Rails 4.0: Release Candidat...

weblog.rubyonrails.org 02 May '13, 8pm

Just in time for the opening of RailsConf, we managed to push out the first release candidate of Rails 4.0. This incorpora...

Killer PPC Testing Using an Ad Testing Matrix

Killer PPC Testing Using an Ad Testing Matrix

searchenginewatch.com 30 Apr '13, 11am

Ad copy testing is one of the basic tenets of PPC advertising. The ability to test several ad variations at once is valuab...

そういうテストもありか "#‌411 Performance Testing (pro) - ...

railscasts.com 28 Apr '13, 4pm

Not to be that guy, but as i usually see valid questions after the railscasts episodes, I'm wondering why Ryan doesn't see...

#Rails documentation tools

everydayrails.com 25 Apr '13, 8am

If you’ve been using Reek to help in refactoring your Rails applications , you might run across warnings of Irresponsible ...

Everyday Rails Testing with RSpec: Updates for ...

everydayrails.com 25 Apr '13, 2am

Everyday Rails Testing with RSpec: Updates for April, 2013 April 24, 2013 Last week I released another round of updates to...

AppsInSg Shows Off Applications Made in Singapore

AppsInSg Shows Off Applications Made in Singapore

techinasia.com 01 May '13, 1am

Looking for applications made by Singaporeans? AppsInSg.com has it all. Created by Ryan Tan, the site showcases only made-...

Getting back to basics So What, Exactly, Is the...

rubyflow.com 01 May '13, 1am

So What, Exactly, Is the Purpose of a Rails Controller? Posted by techiferous on May 01, 2013 — 0 comments Getting back to...

Six More New gTLDs Applications Withdrawn ,incl...

domainnews.com 30 Apr '13, 4am

Six More New gTLDs Applications Withdrawn ,including ,Online, .INC and .LLC Tuesday, 30 April 2013 05:09 Domain News Tweet...