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
Best Practices A guide for programming well. General These are not to be blindly followed; strive to understand these and ask when in doubt. Don't duplicate the functionality of a built-in library. Don't swallow exceptions or "fail silently." Don't write code that guesses at future functionality. Exceptions should be exceptional. Keep the code simple. Object-Oriented Design Avoid global variables.
Sharing Rails sessions with PHP, ColdFusion, and more! Sometimes it does not make sense to store session within a cookie. It might be a size issue, or it could be sensitive information you do not want to go across the wire with each request. Whatever the reason, another option is to database the session information. Luckily rails makes it really easy to do this via active record store. Active reco
RailsConf 2013 Talks May 5th 2013 Patterns of Basecamp's Application Architecture by David Heinemeier Hansson Video Slides How a Request Becomes a Response by Aimee Simone and Christopher Green Video Slides Embrace JavaScript by Yehuda Katz Video Slides Rails Vs. The Client Side by Noel Rappin Video Slides The Magic Tricks of Testing by Sandi Metz Video Slides Split Testing for Product Discovery b
技術部・開発基盤グループの中村です。 この度、クックパッドが開発し、オープンソースとして公開しているRuby on Rails向けプロトタイプ開発用のプラグイン「Chanko」を再設計し、Ruby 2.0.0 への移行に引き続き Chanko 2.0.0 をリリースしました。Chanko 2.0.0 では、これまでのバージョンと互換性を保ちながら、主に実行速度やコードの可読性について改善が加えられています。 http://cookpad.github.io/chanko/ Chankoとは Chankoは、素早く安全に新機能のプロトタイプを行うためのフレームワークです。クックパッドでは今現在でも、Chankoを使って多くの機能を独立して開発し、対象範囲を限定して公開することで新機能の検証サイクルを回しています。Chankoを利用して拡張した機能でエラーが起きた場合、拡張前の機能に自動的に切
Different models in your Rails application will often share a set of cross-cutting concerns. In Basecamp, we have almost forty such concerns with names like Trashable, Searchable, Visible, Movable, Taggable. These concerns encapsulate both data access and domain logic about a certain slice of responsibility. Here’s a simplified version of the taggable concern: module Taggable extend ActiveSupport:
Of course, I don’t actually believe the statement that I’ve used for the title of this post, but I am skeptical about the general applicability of the DCI Paradigm. There has been quite a buzz about it in the Ruby community, but even the best materials on it have gaping holes that leave me wondering whether anyone has actually applied the paradigm in a real, full-scale project before. To change my
half-disavowed old blog. new blog at gilesbowkett.com I recently wrote an ebook about Rails. It covers the ways Rails breaks OOP theory, where this creates problems for Rails developers, where it reveals flaws in OOP theory, the core strategies that make Rails so delightful and powerful, and what you can learn from it all to write better code yourself. This involved crystallizing opinions I've for
Models relationships between AR models. Allows you to follow, friend, and block other AR’s. Consists of two mixins: acts_as_followable and acts_as_friend. These options allow an AR to inherit either a twitter-like follower system or a facebook-like friend system. Installation If you’re running rails 2 use gem version 0.3.2 or the rails-2 branch. Install the gem gem install party_boy Run the genera
社内で、Ruby開発環境勉強会を行いました。趣旨としては、 Rubyプログラマ歴ひと月未満の僕が、最近自分でやってみた開発環境について説明・実演する それを聞いているひとが「こんなことも知らないのか」とあきれて、いろいろ教えてくれる という会です。いろいろ勉強になったので、とてもよかったです。開発環境やツールまわりの勉強会、面白いので、次回以降もなんかしら開催したいと思います。また、 西園寺おんじ氏: http://p.booklog.jp/book/51223 刺身氏: http://blog.kyanny.me/entry/2012/05/30/164601 の2名も発表してくれました。 とはいえ、単に「教えて」というだけいっても意味ないので、以下の軸に沿って問題を整理しつつ、それぞれについて説明・実演をしつつ、みなさんの意見をうかがう感じですすめました。 シェルの設定 irb/pry
Informasi Situs Gas4d 🔗 Nama Situs: GAS4D 🎰 Game Gacor: Gates of Olympus, Gates of GatotKaca, Starlight Princess, Sweet Bonanza, Sugar Rush, The Dog House 🚀 Performa: Anti Lag ⚡ Winrate: 98% Gas4d memberikan game terbaiknya untuk temani galaumu dengan sensasi jackpot sensasional dari permainan terbaik pragmatic, habanero, pg soft, toptrand gaming, spade gaming dan banyak lagi bisa Anda mainkan
Asset Pipelineを備えたRails 3.1のリリースに向けて、その根幹を担うSprocketsをちょっと触っておくことにした。 JavaScript dependency management and concatenation: Sprockets SprocketsはRubyで書かれたJavaScriptプリプロセッサで、複数のJavaScriptソースファイルを1つにまとめるのが主な機能。それによって以下のようなメリットがある。 複数のサイトやアプリケーションで共通するコードを再利用可能な形で切り出した構成にできる JavaScriptプラグインという単位でCSSや画像もまとめることができる JavaScriptファイルを1つにまとめてブラウザに読ませることによる高速化 HTTPリクエストの回数を減らすことができる JavaScriptをコメント付きの複数のファイルおよび
Ruby on Railsの,バージョン間での違いのまとめ。 一覧表を見て,Ruby on Railsの発展・遷移の歴史をたどる事ができる。 また,各バージョンの仕様の変化(リリースノート)についてのリンク集も掲載。 一覧表(簡易年表) 現時点での最新版と,次期バージョンの計画まで。 バージョン リリース日 特徴 初代 2004年7月 ・DHHが一般公開 ・15分でブログ作成のデモが話題に 1.x系 1.0 2005/12/14 ・初の正式リリース ・既に高い知名度だった ・機能面では0.14と差異なし ・パラダイムはDRY+CoC 1.1 2006/03/26 ・Ruby 1.8.4推奨 ・各種ライブラリ改良 1.2 2007/11/24 ・1系の安定版(1.2.6) ・Ruby 1.8.6推奨。1.8.7では動かず 2.x系 2.0 2007/12/07 ・デフォルトDBがSQLite
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く