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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to