RSpecを使ってViewのスペックを書く時のメモ。

  • RSS Builder等を使っている場合も、renderでOk
       1  render 'articles/index.rss.builder'
    
  • renderはデフォルトではlayoutを伴わないので、必要に応じて明示的に指定する。
       1  render 'articles/index', :layout => 'application'
    
posted by Png genki on Wed 13 Aug 2008 at 15:25

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry781
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ