Railsは、最初に素早く動くもの(scaffoldなど)を作って、そこからフィードバックをもらい、少しずつ動く状態を保ちながら、改良していくスタイルです。 スモールスタートを切るには最も向いているスタイルです。しかし、最初はそれで良かったものの、プロジェクトへの要求が増えるにしたがって、コードは複雑になっていき、だんだんメンテするのが大変になってきます。 これはRailsの問題ではなく、システムのアーキテクチャの問題です。 システムでやらなければならないことがたくさん増えたときでも、急にコードが複雑になることなく、きちんとメンテナンスし続ける方法があるなら、誰でも学んでみたいと思うでしょう。 その方法を教えてくれるのが、エンタープライズRailsなのです。 エンタープライズ Rails ―企業ユーザのためのWebアプリケーション設計術 作者: Dan Chak,高井直人,笹井崇司出版社/
第四十五回 FATAL C28000 MIdent authentication failed for user "rails" Fauth.c L337 Rauth_failedというエラーが出て,MigrationやconsoleからのDBアクセスが失敗したのでいろいろ調べてみると,こんな記述を発見しました. it is due to Rails connecting to PostgreSQL via TCP socket, not UNIX socket, so in the pg_hba.conf you need to setup a “host” line, not a “local” line. どうやらRailsがPostgreSQLにアクセスする際にUNIX socketではなくTCP socketを利用していて,TCPを利用したアクセスではpasswordによるユーザ
apacheと同じマシンの8080ポートで動作しているWebrickサーバーに外部からapache経由でアクセスできるようにしたい。ということでmod_proxyでapacheをリバースプロキシにした。 以下は、 「http://<サーバー>/foo/」にアクセスされた場合に、 apacheと同じマシンの8080ポートで動作しているWebrickサーバーの結果を返す 場合の設定例です。ついでなのでSSLでのアクセスのみ許可した上でBasic認証も行うように設定してみた。 ProxyRequests Off <Proxy http://localhost:8080/ > # SSLでのアクセスのみ許可する SSLRequireSSL Order deny,allow Allow from all #Basic認証の設定 AuthType Basic AuthName "foo" AuthUs
<p>最近、仕事でRailsを使い始めたので、今までよく使っていたCakePHPとどこが一緒でどこが違うのかをざっくりまとめてみました。まだRailsは勉強中なので、理解が不十分だったり間違っている箇所もあるかと思いますが、それらの点についてはコメントなどでご教授いただければ幸いです。</p> <h3>Controller</h3> <p>CakePHPの場合、任意のアクションにおいて、/users/show/katsuma のように、URLで「/」で区切られているものは、アクション以降の文字列も勝手に引数に分けてくれます。なので、アクション側の定義で</p> <p><pre>function show($id, $name)</pre></p> <p>のように引数を分けて定義しておいてあげれば、勝手に値が割り当てられることになります。</p> <p>Railsの場合はconfig/rou
なかなか難しい。というのは1年前だったら「RailsによるアジャイルWebアプリケーション開発 第2版」(通称アジャイル本)でファイナルアンサーだったんだけどRails2系が出たことで状況が変わった。アジャイル本はRailsの記述バージョンが1.2系と古い。Railsはバージョンアップで結構振る舞いが変わるでしょう?全然互換性無くて「ぎゃーっ!!」なものはないが、初心者の場合自分が間違っているのかバージョンの違いなのかでハマりやすい。と思う。 また実案件で言うと1.2系を最新版のRailsで動かすには色々手を入れる必要があるので、できるだけRails2系で始めた方がいいと思う。 2009.01.09追記 たくさんブックマークしていただいて恐縮です。私の狭い観測範囲だけでは申し訳ないのでRails勉強会@東京のIRC、#rails-tokyoで相談してみました。その結果をまとめると以下のセッ
Railsサイトとしては世界でもトップ10入りしているクックパッドと食べログ。昨年08.10.17(金)に白金台のクックパッドオフィスで開かれた「クックパッド&カカクコム共催・勉強会」についてレポートします。ちなみに両者には食べログがRailsでリニューアルしたのを聞いてクックパッドが相談に行った、という関係があります。CTOの橋本さんは2006年のRails勉強会@東京の第0回にも参加しているぐらいで、以前からRailsによるリニューアルの可能性を検討していたそうです。 --追記 このエントリを書いた翌日に「クックパッド・エンジニア採用説明会」のお知らせが掲載されておりました。特に連携はしていませんが俺GJ(笑 http://techlife.cookpad.com/2009/01/16/第1回 クックパッド・エンジニア採用説明会のお/ -- この勉強会では大きく2つのメッセージがありま
これって、ある意味、オープンソースプロジェクトの凄みが見えてくるすごく衝撃的なニュースです。そこで、なるべく、IT業界に関係ない人にもわかるように、このニュースの意味をいくつかの側面から考えてみたいと思います。 ビジネスではあり得ないことが起きた まず何が起きたのかひとことで言うと、RailsというプロジェクトがMerbというプロジェクトと合流して、次のバージョンを共同で開発することを発表したということです。 Rails 3高速化Merb技術採用、Rails 2非互換の可能性 | エンタープライズ | マイコミジャーナル 簡単に言えば、Windowsの次期バージョンをMac OSXベースで開発することになったようなものかな。 Ruby on Railsは、「RubyのWebアプリ開発用フレームワーク」というジャンルで一番メジャーなソフトです。その分野に関係する人ならば誰も知らない人がいない
RubyおよびRuby on Railsに対応した統合開発環境であるNetBeans IDE 6.0を使って、Ruby on Railsアプリケーションの開発を始める手順です。既にRuby on Railsで開発をしているがNetBeansは初めて、という方が対象です。 NetBeansを利用することにより、コマンドラインで行っていた操作の多くをGUIで行えるようになります。テキストエディタとコマンドラインでのオペレーションによる開発と比較して作業効率の向上や教育コストの低減が期待できます。また、コード補完やリファクタリングなどの機能もありますので、vimなどのエディタによるコーディングよりも生産性が向上すると考えられます。 Eclipseと異なり、特別なプラグインを導入しなくてもインストール直後からRailsの開発が行えるのも魅力的です。 はじめに 【準備】Rubyインタプリタの変更 プ
昨年10月に一緒に開発合宿に行ったひげろぐの中の人が、その開発合宿の成果物をリリースしたようです。 » アウトドア用品価格比較というサイトをオープンしました – ひげろぐ » アウトドア用品価格比較 サイト名を見るだけでどんなサイトなのか一発でわかりますねw。このサイトでは8つのアウトドア用品サイトの商品を価格比較できるようです。早速どんなサイトに仕上がっているかチェックしてみました。 ↑ カテゴリ一覧がかなり充実しています。アウトドア用品ってこんなにたくさんあるんですね。 ↑ 最近値下げした商品をチェックできます。湯たんぽ値下げ! ↑ 検索機能もあります。上は「テント」で検索した結果。検索結果は人気順、安い順、高い順にソートできるようです。 ↑ 各商品のページには、各ショップでの金額が掲載されています。 ↑ タグで絞り込めるのも便利。価格帯がタグになっていたりします。操作性も工夫されてい
最新Eclipse徹底マスター ⇒ tK (08/25) GAE/J 開発環境でJDO入門 ⇒ bose999 (05/17) GAE/J 開発環境でJDO入門 ⇒ yosukehara (05/17) 日経ソフトウェア 2009年05月号に記事を書かせて頂きました ⇒ (03/25) 日経ソフトウェア 2009年05月号に記事を書かせて頂きました ⇒ 山本 (03/25) OSSとの良い循環 ⇒ imai78 (03/08) Seasar2とJBoss5 VFSの問題解決に向けて ⇒ bose999 (03/08) Seasar2とJBoss5 VFSの問題解決に向けて ⇒ ひが (03/06) Mobsterユーティリティプラグイン ⇒ bose999 (03/05) Mobsterユーティリティプラグイン ⇒ はしもと (03/05) 「SpringによるWebアプリケーションスーパ
大体こんな感じでした。 作業者 若手マネージャ Rubyについては書籍ベースでの知識のみ、 会社的に開発言語の一つとしてRubyが選択できるように準備を進ようとしている PPT資料の作成を担当 俺 好き勝手なデモを担当 ただしゃべりたいだけ 内容 若手マネージャが資料を見せながら、まつもとゆきひろ氏、Rubyの特徴、RoR、JRubyの紹介を20分くらい。 以降ずっと俺のターン 思いつきでやったので資料無し 完全オブジェクト指向とは?プリミティブ型が存在するJavaとの違いを説明!! カッコは省略できるよ! "=" とか "+" もメソッドだよ! とりあえずrailsのデモをやるよ!開発はeclipseでできるよ! booksっていうテーブルを用意したよ!! desc books!! 規約通りのテーブルってこういうのだよ!!id列がキーなんだ!! 複合キーは使えないよ、複合キー使えない論争
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く