05 Jun '12, 2am

Simple Test Metrics in Your Rails App, and What They Mean:

logged_in_user_context do context "with at least one purchase" do setup do @purchases = paginate([Factory(:purchase)]) @store = @purchases.last.store @user. stubs(:purchases).returns(@purchases) @purchases.stubs(:latest). returns(@purchases) @purchases.stubs(:paginate). returns(@purchases) end context "on GET to index" do setup do get :index end before_should "find the user's purchases" do @user.expects(:purchases).with().returns(@purchases) end before_should "find the latest purchases" do @purchases.expects(:latest).with().returns(@purchases) end before_should "paginate the purchases" do @purchases.expects(:paginate).returns(@purchases) end

Full article: http://robots.thoughtbot.com/post/159806234/simple-test-m...

Tweets

#Rails find of the day: #link_to_if and #link_t...

api.rubyonrails.org 04 Jun '12, 7pm

<%= button_to "New", :action => "new" %> # => "<form method="post" action="/controller/new" class="button_to"> # <div><inp...

“Ruby on Railsで複合キーを扱う(1) - Rails 雑感 - Ruby on ...

oiax.jp 03 Jun '12, 9pm

Ruby on Railsでは、データベーステーブルの主キーとしてidというカラムを使うのがデフォルトです。 誤解される方も多いのですが、もちろん主キーの名前は変更できます。たとえば、User モデルに対応するusers テーブルの主キーがui...

@taylorwilliamss maybe start here.

railscasts.com 02 Jun '12, 4pm

bundle rails g rspec:install mkdir spec/support spec/models spec/routing guard init rspec gem install rb-fsevent rails g i...

Table#index - This method does not work. #rails

apidock.com 04 Jun '12, 10am

When using the index method within a create_table statement, it does not have any side effect - at least not in MySQL. cre...

Ruby on Rails Guides: Configuring Rails Applica...

edgeguides.rubyonrails.org 02 Jun '12, 10pm

configures Rails itself to serve static assets. Defaults to true, but in the production environment is turned off as the s...

@wayoutmind @nlsmith I usually refer to but tho...

guides.rubyonrails.org 05 Jun '12, 1am

Ruby on Rails is not “someone else’s framework.” Over the years, hundreds of people have contributed to Ruby on Rails rang...

Simple Sprees 2012-06-06 01:35:00 Blogshop @ JustSpree

Simple Sprees 2012-06-06 01:35:00 Blogshop @ Ju...

blogshop.justspree.com 06 Jun '12, 6am

The following is an excerpt from "Simple Sprees 2012-06-06 01:35:00". Note: Items are offered by individual blogshop owner...

#252 Metrics Metrics Metrics - RailsCasts:

railscasts.com 24 May '12, 1pm

Metric Fu, Metrical, SimpleCov, Rails Best Practices, and more are covered in this episode on metrics.

A sneak peak at the new Facebook Camera app for...

e27.sg 06 Jun '12, 2am

Facebook Camera essentially is an app designed to take, share, and view pictures on Facebook. It’s like a photo-only versi...

Rails 3.1: has_secure_passwordメソッド - Rails 雑感 -...

oiax.jp 06 Jun '12, 10am

この前のエントリー では、Rails 3.1で登場した assign_attributes という渋いメソッドについて書きました。 今回紹介するのも渋い新仕様です。その名も has_secure_password 。 いま、User というモデ...

FormTagHelper#submit_tag - :disable_with is dep...

apidock.com 05 Jun '12, 9am

:confirm => 'question?' - If present the unobtrusive JavaScript drivers will provide a prompt with the question specified....

Which Link Metrics Should I Use? Part 1 of 2 - ...

seomoz.org 27 May '12, 10pm

Howdy SEOmoz fans. Welcome to another edition of Whiteboard Friday. I'm very excited to have you with us today. Today we'r...

Infographic: The Facebook App Economy

engineyard.com 08 Jun '12, 7pm

Using the Engine Yard PaaS to deliver social experiences has a variety of advantages: Get to Market Faster Companies devel...