Ruby on Rails
Friday, September 2, 2011
hi
def search
@employee
end
i have done the above, but it shows following error
undefined method `model_name' for NilClass:Class
Extracted source (around line #1):
1: <%= form_for(@employee) do |e| %>
2: <%= e.error_msg %>
3: EMP ID<%= e.text_field :id %><br>
4: <%= e.submit 'search', :controller => 'employees', :action =>
'search1' %>
thanks,
-pab
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment