On 4 November 2015 at 12:28, Emrah Yıldırım <emrah.yldr...@gmail.com> wrote: > Hi, > > 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 railstutorial.org tutorial as was suggested by more than one person the last time you asked a question here? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtOXyiLY_FLpzmEM3NSb%3DDCD3y-XknRj%2B428nRhm7Hb%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.