Wrong number of arguments?

后端 未结 3 936
不思量自难忘°
不思量自难忘° 2021-01-04 22:31

I\'m following Michael Hartl\'s tutorial here and am trying to create an index of users.

My code:

  class UsersController < ApplicationController         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 22:50

    If you followed the tutorial and added the options hash to the function then you're only missing the {} around the options.

    This should work. <%= gravatar_for user, {size: 52} %>

提交回复
热议问题