20 Oct '13, 4pm

Rails Tips|Decorator/Presenter @feedlyさんから

class UserPresenter attr_accessor :user, :view_context delegate :family_name, :given_name, to: :user def initialize(user, view_context) self.user = user self.view_context = view_context yield(self) if block_given? end def full_name family_name + ' ' + given_name end def full_name_with_hyperlink view_context.link_to(full_name, user) end class << self def build(users, view_context) users.each { |user| yield new(user, view_context) } end end end

Full article: http://www.oiax.jp/rails/tips/decorators_and_presenters.html

Tweets

"Rails Tips|Nokogiri::HTML::Builder" good read

oiax.jp 23 Oct '13, 2am

module ApplicationHelper include HtmlBuilder def table_of_users(users) markup do |m| m.table(id: 'users') do m.tr do m.th ...

RSpec/Capybara入門|ポイントシステム(8) -- データベーストランザクション ...

oiax.jp 19 Oct '13, 2pm

require 'spec_helper' describe RewardManager, '#grant_login_points' do let(:customer) { create(:customer) } let(:date_boun...

"Upgrading to Rails 4" is open source

rubyflow.com 21 Oct '13, 2pm

"Upgrading to Rails 4" is open source Posted by alindeman on October 21, 2013 — 0 comments upgradingtorails4.com is now op...

Rails route helpers are brittle via @pivotallabs

pivotallabs.com 19 Oct '13, 3pm

TL;DR: Use the resource itself instead of a route helper when representing urls in your Rails application. Route helpers h...

RSpec/Capybara入門|ポイントシステム(7) -- context @feedly...

oiax.jp 19 Oct '13, 2pm

require 'spec_helper' describe ReceptionDesk, '#sign_in' do context 'ユーザー名とパスワードが一致する場合' do let(:customer) { create(:custo...

Rails 3.2.15

rubyflow.ru 18 Oct '13, 8am

Вышел новый Rails 3.2.15. Это баг-фикс релиз, поэтому всем настоятельно рекомендуется обновиться. Исправлена уязвимость в ...

Please hack my Rails: Please hack my Rails

rubyflow.com 17 Oct '13, 4pm

Please hack my Rails Posted by mpapis on October 17, 2013 — 0 comments Please hack my Rails Comments “ ” Post a Comment Co...

@smoozoid

rubyonrails.org 26 Oct '13, 3pm

If you're just getting started or want to learn about Rails in general, check the Rails Guides . APIs Browse all framework...

“#348 The Rails API Gem - RailsCasts”

railscasts.com 18 Oct '13, 12pm

$ rake middleware use ActionDispatch::Static use Rack::Lock use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0...

Rails 4.0.1.rc1 has been released! Please give ...

weblog.rubyonrails.org 17 Oct '13, 4pm

I am happy to announce that Rails 4.0.1.rc1 has been released. This is a bug fix release and includes more than 450 commit...

Debugging Rails Applications in Development

rubyflow.com 16 Oct '13, 12pm

Debugging Rails Applications in Development Posted by rubiii on October 16, 2013 — 0 comments Very good, in-depth blog pos...

Rails 3.2.15 has been released! Please check ou...

weblog.rubyonrails.org 16 Oct '13, 5pm

I am happy to announce that Rails 3.2.15 has been released. This is a bug fix release and includes 56 commits. This releas...

Old but exceptionally accurate post - 11 Tips o...

rubyinside.com 10 Oct '13, 10am

11 Tips on Hiring a Rails Developer By Peter Cooper / November 29, 2007 The following article is a guest article written b...

Revert change on ActiveRecord::Relation#order m...

rubyflow.com 18 Oct '13, 8pm

Revert change on ActiveRecord::Relation#order method monkey patch to keep Rails 4.0.0 order behaviou Posted by mencio on O...

How To Build an App in 48 Hours - Rails Rumble

rubyflow.com 16 Oct '13, 11am

How To Build an App in 48 Hours - Rails Rumble Posted by tsmango on October 16, 2013 — 0 comments This year, Darcy Laycock...