You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
はじめに Ruby on Rails Advent Calendar 2013 5日目 「Favoriteの設計実装はパターンとして使える」 http://qiita.com/tkawa/items/ac01dbc1e441e78ffcfd 一見設計しにくい「操作」はパターンに落とし込めるのでは、という話です。 class TodoList < ActiveRecord::Base has_many :todo_items, -> { order(position: :desc) } def sort! # self.todo_items の position を書き換えてsaveするコード end end class TodoItem < ActiveRecord::Base # name: string # position: integer belongs_to :todo_lis
QUIT PRETENDING CRUD through HTTP is a good step forward to using resources and becoming RESTful, another step further is to make use of hypermedia aware resources and Restfulie allows you to do it in Java and Ruby. Why Restfulie? Easy → writing hypermedia aware resource based clients and servers Small → it’s not a bloated solution with a huge list of APIs HATEOAS → clients you are unaware of will
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く