vendredi 17 juin 2016

Getting undefined method `each' for "":String in Rails after submitted

Getting this error after submitted the form.

  def create
@user = User.new(user_params)
if @user.save
  log_in @user
  redirect_to @user
else
  render 'new'

end

end

Aucun commentaire:

Enregistrer un commentaire