タグ

ブックマーク / koress.jp (1)

  • koress.jp: jpmobile + RESTful_Authentication (Rails 2.2)

    よく忘れるのでメモです。ポイントは3と4で、セッション管理をDBでやる必要があります。クッキーでやっている限り、logged_in?はfalseになります。 jpmobile をインストール(gitから) RESTful_authenticationをインストール(gitから) セッション管理をクッキーからDB格納に切り替える % rake db:sessions:create % rake db:migrate config/environment.rb に以下を記述 config.action_controller.session_store = :active_record_store controller/application.rb に以下を記述 include AuthenticatedSystem mobile_filter trans_sid before_

  • 1