奇怪的问题
我现在自己的机器上登录帐号密码后出现错误页面
于是我在虚拟机上测试,结果是没问题的.
我把虚拟机上的文件拷贝的本机在测试,结果又出现同样的问题.
NoMethodError in Frames#index
Showing app/views/frames/_audio.html.erb where line #19 raised:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.full_name
Extracted source:
16: AudioPlayer.embed(<%= frame_audio_id -%>, {
17: soundFile: "<%= frame.audio.public_mp3_filename -%>",
18: titles: "<%= escape_javascript(h(frame.title)) -%>",
19: artists: "<%= escape_javascript(h(frame.user.full_name)) -%>"
20: });
21: </script>
22: <% end %>
Trace of template inclusion: app/views/frames/_frame.html.erb, app/views/frames/index.html.erb
app/views/frames/_audio.html.erb:19
app/views/frames/_frame.html.erb:24
app/views/frames/index.html.
我看来半天没发现 程序有什么不对.