読者の編集時の「戻る」を指定時

  • 投稿者: ushi
  • カテゴリ: プロジェクト全体
  • 優先度: 緊急
  • 状態: 提案
  • 日時: 2010年06月16日 23時59分35秒

 内容

以下のエラーメッセージが出て落ちてしまう

NoMethodError in Patrons#index Showing app/views/patrons/_index.html.erb where line #41 raised:

undefined method `required_role_id' for nil:NilClass

Extracted source (around line #41):

38: </td>39: </tr>40: <%- end -%>41: </table>42: 43: <%= will_paginate(@patrons) -%>44: </div>

Trace of template inclusion: app/views/patrons/index.html.erb

RAILS_ROOT: /home2/tanabe/next-l

Application Trace | Framework Trace | Full Trace /home2/tanabe/next-l/app/models/ability.rb:17(eval):2:in `send'(eval):2:in `can?'/home2/tanabe/next-l/app/views/patrons/_index.html.erb:41:in `_run_erb_app47views47patrons47_index46html46erb_locals_index_object'/home2/tanabe/next-l/app/views/patrons/index.html.erb:7:in `_run_erb_app47views47patrons47index46html46erb'/home2/tanabe/next-l/app/controllers/patrons_controller.rb:68:in `index'

 コメント

お名前: コメント:

編集ログイン 最終更新のRSS