Ruby on Rails news forms labels for db are « undefined method » -
This is my first post. I am making a start on programming.
I am on an open source project:
I must add the field to a form that is added to a database.
My fork:
I am copying the existing form field, but when I change the label for a new one, I get an error 'undefined method' on the new label .
Error
& lt;% = r.label: user_name, t (".username_")%> & Lt; Br> & Lt;% = r.text_field (: user_name, category: 'input-report')%> & Lt; Br> & Lt;% = r.label: Village, T ("Village")% & gt; & Lt; Br> & Lt;% = r.text_field: Village, Category: 'Input-Report'% & gt; & Lt; Br> No Error
& lt;% = r.label: user_name, t (".username")% & Gt; & Lt; Br> & Lt;% = r.text_field (: user_name, category: 'input-report')%> & Lt; Br> & Lt;% = r.label: Village, T ("Village")% & gt; & Lt; Br> & Lt;% = r.text_field: user_name, category: 'input-report'% & gt; & Lt; Br> Where do new labels add? I searched a lot but found nothing.
Comments
Post a Comment