1) User pages index Failure/Error: visit users_path ActionVIEw::Template::Error: wrong number of arguments (2 for 1) # ./app/helpers/users_helper.rb:3:in `gravatar_for' # ./app/vIEws/users/index.HTML.erb:7:in `block in _app_vIEws_users_index_HTML_erb__3004047397113020476_70255017945740' # ./app/vIEws/users/index.HTML.erb:5:in `each' # ./app/vIEws/users/index.HTML.erb:5:in `_app_vIEws_users_index_HTML_erb__3004047397113020476_70255017945740' # ./spec/requests/user_pages_spec.rb:12:in `block (3 levels) in <top (required)>'2) User pages index should List each user Failure/Error: visit users_path ActionVIEw::Template::Error: wrong number of arguments (2 for 1) # ./app/helpers/users_helper.rb:3:in `gravatar_for' # ./app/vIEws/users/index.HTML.erb:7:in `block in _app_vIEws_users_index_HTML_erb__3004047397113020476_70255017945740' # ./app/vIEws/users/index.HTML.erb:5:in `each' # ./app/vIEws/users/index.HTML.erb:5:in `_app_vIEws_users_index_HTML_erb__3004047397113020476_70255017945740' # ./spec/requests/user_pages_spec.rb:12:in `block (3 levels) in <top (required)>'解决方法 Chapter 7’s first exercise指定您扩展gravatar_for方法以包括用于包含大小的新的可选参数.你可能没有做这个练习,所以它只期望原始的1个参数而不是两个参数.完成练习,您应该通过此代码. 总结
以上是内存溢出为你收集整理的ruby-on-rails – 这些错误消息是什么意思?全部内容,希望文章能够帮你解决ruby-on-rails – 这些错误消息是什么意思?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)