29 Jan '17, 12am

ruby: Active Record クエリインターフェイス | Rails ガイド https://t.co/D42dVi87Hj

class User < ActiveRecord::Base default_scope { where state: 'pending' } scope :active, -> { where state: 'active' } scope :inactive, -> { where state: 'inactive' } end User.all # SELECT "users".* FROM "users" WHERE "users"."state" = 'pending' User.active # SELECT "users".* FROM "users" WHERE "users"."state" = 'pending' AND "users"."state" = 'active' User.where(state: 'inactive') # SELECT "users".* FROM "users" WHERE "users"."state" = 'pending' AND "users"."state" = 'inactive'

Full article: https://railsguides.jp/active_record_querying.html

Tweets

Rails エンジン入門 | Rails ガイド Railsガイドは、Ruby on Rail...

railsguides.jp 29 Jan '17, 4pm

invoke active_record create db/migrate/[timestamp]_create_blorgh_articles.rb create app/models/blorgh/article.rb invoke te...

ruby: Rails の初期化プロセス | Rails ガイド https://t.co/R...

railsguides.jp 01 Feb '17, 12pm

def start print_boot_information trap(:INT) { exit } create_tmp_directories log_to_stdout if options[:log_stdout] super .....

Ruby on Rails

floridarussian.com 29 Jan '17, 1am

Location : Washington, DC, USA, Washington Company: Indeed Hire Description: Data is a group of nearly 40agile and innovat...

ruby: 定数の自動読み込みと再読み込み | Rails ガイド https://t.co/...

railsguides.jp 09 Feb '17, 12pm

if「定数Cが見つからないクラスまたはモジュール」がオブジェクトである let ns = '' else let M = 定数Cが見つからないクラスまたはモジュール if Mが無名である let ns = '' else let ns = M....

ruby on rails developer by ayaaosama

freelancer.com 29 Jan '17, 7pm

web developer with ruby on rails experience , developer freelance ruby on rails , web developer freelance ruby on rails , ...

ruby: Action Cable の概要 | Rails ガイド https://t.co...

railsguides.jp 24 Jan '17, 3am

# app/assets/javascripts/cable/subscriptions/appearance.coffee App.cable.subscriptions.create "AppearanceChannel", # サブスクリ...

ruby: Rails による API 専用アプリ | Rails ガイド https://t...

railsguides.jp 02 Feb '17, 8pm

$ bin/rails c >> ActionController::API.ancestors - ActionController::Metal.ancestors => [ActionController::API, ActiveReco...

Upgrade Ruby on Rails Application from 1.8.7 to...

freelancer.com 28 Jan '17, 9am

Hello, I have a Ruby on Rails application developed in Ruby 1.8.7 and Rails 2.3.9. The application is running without any ...

Ruby on Rails Web Developer

hasjob.co 28 Jan '17, 8am

Solid experience in developing RoR web applications. Responsible for managing the server­side RESTful API for our website ...

Starbucks reports record holiday and record Q1 ...

news.starbucks.com 26 Jan '17, 9pm

Comparable Store Sales Up 6% in China; Up 3% Globally and in the U.S. and Americas Consolidated Net Revenues Rise 7% to Re...

Ruby On Rails Developer

technojobs.co.uk 27 Jan '17, 5pm

Ruby On Rails developer - Brussels - 1-3 years My client is looking for a Ruby on rails developer for a 1-3 year contract ...

Rails ジェネレータとテンプレート入門 | Rails ガイド Railsガイドは、Rub...

railsguides.jp 17 Jan '17, 8pm

$ bin/rails generate scaffold User name:string invoke active_record create db/migrate/20130924151154_create_users.rb creat...

Adding Active Admin to a Rails 5 API Application

rubyflow.com 30 Jan '17, 3pm

Adding Active Admin to a Rails 5 API Application by Carlos Ramirez III — Today Rails 5 API applications don’t include the ...

ruby: 定数の自動読み込みと再読み込み | Rails ガイド https://t.co/...

railsguides.jp 18 Jan '17, 8pm

if「定数Cが見つからないクラスまたはモジュール」がオブジェクトである let ns = '' else let M = 定数Cが見つからないクラスまたはモジュール if Mが無名である let ns = '' else let ns = M....

Rails アップグレードガイド | Rails ガイド: 本章では、アプリケーションで使用さ...

railsguides.jp 15 Jan '17, 4pm

$ rails app:update identical config/boot.rb exist config conflict config/routes.rb Overwrite /myapp/config/routes.rb? (ent...