Hi,
def search
end
def search1
@employee = Employee.find(params[:id])
respond_to do |format|
format.html{render :partial => 'show'}
format.xml
end
end
search.html is
<%= form_for(@employee) do |e| %>
EMP ID<%= e.text_field :id %><br>
<%= e.submit 'search', :controller => 'employees', :action =>
'search1' %>
<% end %>
problem is its not showing up search page itself
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.
No comments:
Post a Comment