Hello António,
Thanks for your fast reply!
Since my inexperience, that didn't crossed my mind.
But, I'm curious, how do you do with your DataTimeInput?
I see in the source code only reference 1i and 4i, and not 2i or 3i.
And I don't have those attributes either.
Is this already an abstraction for the rails control?
def label_target
case input_type
when :date, :datetime
"#{attribute_name}_1i"
when :time
"#{attribute_name}_4i"
end
end
Thanks so much, and congratulations for the gem :)
On Jan 13, 10:28 am, Carlos Antonio da Silva
<
carlosantoniodasi...@gmail.com> wrote:
> The problem is that your model doesn't respond to the custom attribute you
> want to create. The model has to have such attributes, either db columns or
> virtual ones that you will handle, otherwise it'll fail with no method
> errors.
>
> On Fri, Jan 13, 2012 at 5:15 AM, Victor Martins
> <
corr...@victormartins.com>wrote:
> > "#...@builder.text_field("#{attribute_name}",
> > input_html_options)}".html_safe +
> > "#...@builder.text_field(attribute_name,
> > input_html_options)}".html_safe +
> > "#...@builder.text_field(attribute_name,