attribute problem


rails g scaffold gform name:string attribute:string value:string

I need to use the attribute column. But I get ActiveRecord error. I solved this by safe_attibut gem. This time the “wrong number of arguments (0 for 1)” I received the warning. Error in <% = f.text_field: attribute%> show this line. The solution to this series?


f.text_field: attribute
Is not valid ruby syntax. There should not be a : immediately after text_field.

Have you worked right through the tutorial as was
suggested by more than one person the last time you asked a question


It has been an error in copying. actually issue “attribute” on Rails “attribute” does not allow the word. But I have to use it.

4 Kasım 2015 Çarşamba 14:50:03 UTC+2 tarihinde Colin Law yazdı: