RailsApps プロジェクト テンプレートから事前起動サインアップ ページを作成しようとしています: http://railsapps.github.com/rails-prelaunch-signup/
Heroku にデプロイしましたが、基本的なサイトは問題なく動作します。こちらからアクセスできます: http://arcane-lake-2098.herokuapp.com
問題は、ユーザーが app/views/devise/registrations/edit.html.erb の次のコードを使用して自分のアカウントを削除できないことです。
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>.</p>
それ以外はすべて正常に動作します (アカウントの作成、名前の編集、パスワードなど) - しかし、[アカウントをキャンセル] をクリックして、ポップアップ ウィンドウで [OK] をクリックすると、[申し訳ありませんが、問題が発生しました] と表示されます。
私はレール3.2.8を使用しています
私はすべての Q&A を調べましたが、他のほとんどの人はルート パスに問題があるようです。
エラーのログは次のとおりです。
2012-10-11T09:46:49+00:00 app[web.1]: Started POST "/users/sign_in" for 49.2.27.159 at 2012-10-11 09:46:49 +0000
2012-10-11T09:46:49+00:00 heroku[router]: POST arcane-lake-2098.herokuapp.com/users/sign_in dyno=web.1 queue=0 wait=0ms service=118ms status=302 bytes=104
2012-10-11T09:46:49+00:00 app[web.1]:
2012-10-11T09:46:49+00:00 app[web.1]: Started GET "/" for 49.2.27.159 at 2012-10-11 09:46:49 +0000
2012-10-11T09:46:49+00:00 app[web.1]:
2012-10-11T09:46:49+00:00 heroku[router]: GET arcane-lake-2098.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=11ms status=200 bytes=1521
2012-10-11T09:46:51+00:00 app[web.1]:
2012-10-11T09:46:51+00:00 app[web.1]:
2012-10-11T09:46:51+00:00 app[web.1]: Started GET "/users/edit" for 49.2.27.159 at 2012-10-11 09:46:51 +0000
2012-10-11T09:46:51+00:00 heroku[router]: GET arcane-lake-2098.herokuapp.com/users/edit dyno=web.1 queue=0 wait=0ms service=15ms status=200 bytes=2949
2012-10-11T09:46:56+00:00 app[web.1]:
2012-10-11T09:46:56+00:00 app[web.1]:
2012-10-11T09:46:56+00:00 app[web.1]: Started DELETE "/users" for 49.2.27.159 at 2012-10-11 09:46:56 +0000
2012-10-11T09:46:57+00:00 app[web.1]:
2012-10-11T09:46:57+00:00 app[web.1]:
2012-10-11T09:46:57+00:00 app[web.1]:
2012-10-11T09:46:57+00:00 app[web.1]: Hominid::APIError (<232> There is no record of "wheresclark@gmail.com" in the database):
2012-10-11T09:46:57+00:00 app[web.1]: app/models/user.rb:69:in `remove_user_from_mailchimp'
2012-10-11T09:46:57+00:00 heroku[router]: POST arcane-lake-2098.herokuapp.com/users dyno=web.1 queue=0 wait=0ms service=436ms status=500 bytes=643
お気軽にサインアップして、アカウントをキャンセルして、私が何を意味するかを確認してください。