我刚刚推送了一些更改 heroku,现在我的应用程序坏了,即使它在 dev 中运行 find。这是'heroku日志'所说的......
2013-11-07T18:58:47.712744+00:00 app[web.1]: ActionView::Template::Error (undefined method `user_type' for #<User:0x007f1f2ca092e8>):
2013-11-07T18:58:47.712897+00:00 app[web.1]: app/views/users/_form.html.erb:1:in `_app_views_users__form_html_erb___784052068966039252_69885941331520'
2013-11-07T18:58:47.712744+00:00 app[web.1]:
2013-11-07T18:58:47.712744+00:00 app[web.1]: 23: <%= f.password_field :password_confirmation %>
2013-11-07T18:58:47.712744+00:00 app[web.1]: 24: </div>
2013-11-07T18:58:47.712744+00:00 app[web.1]: 25: <div class="field">
2013-11-07T18:58:47.712744+00:00 app[web.1]: 26: <%= f.select :user_type, options_for_select(['Bar', 'Brewery', 'Restaurant', 'Hotel'], @user.user_type) %><br/>
2013-11-07T18:58:47.712744+00:00 app[web.1]: 27: </div>
2013-11-07T18:58:47.712744+00:00 app[web.1]: app/views/users/_form.html.erb:26:in `block in _app_views_users__form_html_erb___784052068966039252_69885941331520'
2013-11-07T18:58:47.712897+00:00 app[web.1]:
2013-11-07T18:58:47.712744+00:00 app[web.1]: 28: <div class="actions"><%= f.submit "Sign Up" %></div>
2013-11-07T18:58:47.712744+00:00 app[web.1]: 29: <% end %>
2013-11-07T18:58:47.712897+00:00 app[web.1]: app/views/users/new.html.erb:2:in `_app_views_users_new_html_erb___2270355414211974343_69885950076300'
看起来它不喜欢 <%= f.select :user_type, options_for_select(['Bar', 'Brewery', 'Restaurant', 'Hotel'], @user.user_type) %> 有
什么想法吗?