• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

The main reason of which I was felt in love with Merb is it uses same context for controller and view.
By sharing same context, view_helpers and instance variables become simple.
You just use them in controller then you can use them in view by same manner.
But as you know, Rails3 doesn't.

The reason Rails3 doesn't is probably for caching.
If the view has many outer variables that affects its result, the cache key tends to be very complicated.
In the manner of Rails3, we can use both action caching and partial caching easily. Because the all variables used in view are clear and small.

But in these days, I am doubting the use of those caching.
Now we don't use browsers that has no capability of JavaScript.
In addition, Google treats Ajax pages for indexing well.
Haven't you ever seen the URI that has '#!'?
That's for it.
So now, the most of pages can be provided as static html with dynamic JSON. They are combined by JavaScript.
There's few situations that the action caching and the partial caching go well.

In conclusion, I think the context should be shared between view and controller so that we can use view helpers simply.

posted by genki genki on Wed 12 Jan 2011 at 09:33 with 0 comments
Contents rssrss
光ファイバーを二次元振動させて走査するAR用ディスプレイ
因果の取り違え
Swift2's defer for CoffeeScript
mongodb-3.0からcreateIndexのdropDupsが無くなったらしい
mongodb-3.0以降のWiredTigerの設定を動的に変更する方法
一般楕円の高速生成アルゴリズムへの道標
farro mantecatoのレシピ
Droonga関連の記事のまとめ
RuntimeErrorの特定のメッセージに限定してrescueする方法
jQueryでscriptタグを実行せずにappendする
Tags
coffeescriptdefergroongajsmemonodenodejs
Comments rssrss
https://iz-phoenix.com/ https://iz-phoenix.com/: Hi there! Do you use Twitter? I'd like to follow y... 05/26 06:50
http:// http://: Hello to every single one, it's truly a pleasant f... 05/26 05:52
https://web.danang.vn/rollbit-promotion-boost-your-wins-now/ https://web.danang.vn/rollbit-promotion-boost-your-wins-now/: I completely agree with you here. 05/26 05:29
https://www.catharton.net/ https://www.catharton.net/: Wonderful blog! Do you have any helpful hints fo... 05/26 05:10
https://nuocsachninhcuong.com.vn/foxdex-payout-reviews-real-payout-proofs-and-honest-feedback/ https://nuocsachninhcuong.com.vn/foxdex-payout-reviews-real-payout-proofs-and-honest-feedback/: This really clears things up, thanks. 05/26 04:25
https://sistemegsm.ro/ https://sistemegsm.ro/: Why users still use to read news papers when in th... 05/26 03:45
https://asertonegocios.com/2026/05/25/puppybet-reopen-account-fast-access-now/ https://asertonegocios.com/2026/05/25/puppybet-reopen-account-fast-access-now/: Thanks for the detailed review. 05/26 02:29
https://darpanpharmaceuticals.com/ https://darpanpharmaceuticals.com/: I read this post completely regarding the differen... 05/26 00:49
Services from s21g
YOMU Web小説リーダー
小説投稿サイトの公式ページを開き、WebView表示と読み上げ向け表示を切り替えて、移動中や作業中にもWeb小説の続きを聴きやすくするiPhoneアプリです。
補助探
公開されている補助金・助成金情報を集約し、条件に合う制度を探しやすくするサービスです。
jotter.me
個人開発者のためのホスティング一体型ノートサービス
ハンドミラー
iPhone向けの手鏡アプリ
ツイプロ(twpro)
Twitterプロフィールの高速検索エンジン