Ruby on Rails
Wednesday, November 4, 2015
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ı:
-- 4 Kasım 2015 Çarşamba 14:50:03 UTC+2 tarihinde Colin Law yazdı:
On 4 November 2015 at 12:28, Emrah Yıldırım <emrah....@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+unsubscribe@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/5809fd31-1b46-4bdd-bfb0-3131fd4e4159%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment