*view* <%= form_for(@mstype) do |f| %> <p> <%= f.text_field(:Name,:class => "span1",:placeholder => "x") %> <%end%> *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...? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/xk4UBnWOx74J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tue, May 8, 2012 at 2:10 PM, amvis <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> *view* > <%= form_for(@mstype) do |f| %> > <p> <%= f.text_field(:Name,:class => "span1",:placeholder => "x") %> > <%end%> > > > *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 JavierQ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It''s case sensitive. Are you sure you don''t mean "name" instead of "Name"? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/mqTCBUktDAQJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.