issues with text_field in rails


<%= form_for(@mstype) do |f| %>

<%= f.text_field(:Name,:class => "span1",:placeholder => "x") %>


Got the error like this

NoMethodError in Pgmdfntions#pgmdfntion

Showing pgm.html.erb where line #57 raised:

undefined method `Name' for #<Pgmdfntion:0xb457ad28>
But i could do this as same before. but in this case got the error...?

What fields are in your Pgmdfntions model/table ?

Rails is searching for “Name” field


It’s case sensitive. Are you sure you don’t mean “name” instead of “Name”?