你如何解决? formtastic:label_method不再可用 [英] How do you fix? formtastic :label_method is no longer available

查看:153
本文介绍了你如何解决? formtastic:label_method不再可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我是ruby / rails的新人。所以为了弥补我的弱点,我公司有一个人来帮助我创建我们的网站的骨头。他输入formtastic:label_method,所以我们可以改变DDLB中显示的字段。
当我把项目移动到一个新的盒子,我得到这个错误。



:label_method不再可用



我想知道的是...在我的地方使用什么?

解决方案

be:

 :member_label 

根据 http://rubydoc.info/ gem / formtastic / 2.0.0 / Formtastic / Helpers / InputHelper



(Symbol,Proc,Method) - 已弃用,重命名为:member_label p>

如果这不起作用,你可以发布你的_form让我们看看吗?


Ok.. I'm new to ruby/rails. So to compensate for my weakness, my company had a guy come in to help me create the bones of our website. He put in formtastic :label_method, so we could change what fields are displayed in the DDLB. When I moved my project to a new box, I got this error.

:label_method is no longer available

What I'm wondering is.. what do I use in it's place?

解决方案

I think it might be:

:member_label

According to http://rubydoc.info/gems/formtastic/2.0.0/Formtastic/Helpers/InputHelper

"(Symbol, Proc, Method) — Deprecated, renamed to :member_label"

If that doesn't work could you post your _form for us to see?

这篇关于你如何解决? formtastic:label_method不再可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆