Dear all,

I have .html.erb like below
--------------------------------------------------------------------------------------------------------
<%=
  render :active_scaffold => 'contact',
    :conditions => [ "contacts.name like ? OR contacts.pobox like ? OR
categories.name like ? or subcategories.name like ?",
     "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "[EMAIL 
PROTECTED]" ]
%>
--------------------------------------------------------------------------------------------------------------------------------
it comes from the controller function below
----------------------------------------------------------------------------------------------------------------------------------
def searchres
    @query = params['query']
    @contact = Contact.find_by_sql("SELECT * from contacts WHERE name
like '%" [EMAIL PROTECTED]"%'")

    render :layout => true
end
-----------------------------------------------------------------------------------------------------------------------

How can i alter the RENDER action not to have the edit,delete since
this is just meant to show the results from a query form?

Kind Regards

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to