Top > 開発ガイド > コンポーネント移行ガイド > 0.6.11 => 0.6.12

コンポーネント移行ガイド 0.6.11 → 0.6.12

Rubricks本体を0.6.11から0.6.12に変更した際に必要な、コンポーネントの修正点を説明します。

"redirect_to"の内部処理を変更しました (2008/08/04)

  • HTTP通信 ⇒ super
  • AJAX通信 ⇒ render_component
    • AJAX通信内で発行される"redirect_to"に渡す引数は必ずURLを表すHash形式とし、
      コントローラ名を省略しないようにしてください。
      • 良い例
          def xxxx
            .
            .
            .
            redirect_to :controller => '/sample/index', :action => 'show', :id => params[:id]
          end
        
      • 悪い例
          def xxxx
            .
            .
            .
            redirect_to :controller => 'index', :action => 'show', :id => params[:id]
          end
        
          def xxxx
            .
            .
            .
            redirect_to "/sample/index/show/#{params[:id]}"
          end