奇怪的问题

jerry520123 2009-02-17 05:13:01
我现在自己的机器上登录帐号密码后出现错误页面
于是我在虚拟机上测试,结果是没问题的.
我把虚拟机上的文件拷贝的本机在测试,结果又出现同样的问题.
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.
我看来半天没发现 程序有什么不对.
...全文
78 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jerry520123 2009-03-02
  • 打赏
  • 举报
回复
恩,谢谢大家了.
saiwaiqishi 2009-02-28
  • 打赏
  • 举报
回复
user是一个nil,检查一下
taito 2009-02-18
  • 打赏
  • 举报
回复
frame.user 没有数据。

检查一下你这个关联是不是有内容
jerry520123 2009-02-18
  • 打赏
  • 举报
回复
应该是数据库的问题吧

2,763

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ruby/Rails
社区管理员
  • Ruby/Rails社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧