Thanks for ur reply,but I have a code which goes like this... I am not
using end_form_tag..using end itself.
***********************************************************************************
<%= form_tag ({:controller => 'survey', :action => 'search_objects'})
%>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<% select 'search', 'type' ,%w{ Companies People},{:selected =>
'Companies'},
{:onchange => "if ( this.value == 'Companies') {
$('company_desc').show(); $('people_desc').hide(); }
else { $('company_desc').hide();
$('people_desc').show();}" } %>
</td>
<!-- vishwas: ruby code for search starts-->
<td id="keyword" class="field">
<div style="margin: 0 0 0 3px;">
<span id = "company_desc">
<input type="text" size="32" id="query_companies"
name="query_companies" value="" title=" company, designation or
location" class="populate" /></span>
<span id = "people_desc" style="display:none" >
<input type="text" size="32" id="query_people" name="query_people"
value="" title=" name, company, location, or title" class="populate"
/></span>
</div>
</td>
<td id="button">
<%= image_submit_tag "/images/search_yellow.gif" %>
</td>
</tr>
</tbody>
</table>
<%= end %>
>>
> end_form_tag is deprecated, you have to use form_tag with a block
>
> <% form_tag ... do %>
>
> <% end %>
>
> notice that you write <% end %> and not <%= end %>
>
> -- Jean-François.
>
> --
> Les 50 ans de Jeanie Longo : http://www.longo50.org
> http://twitter.com/underflow_
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de
Google Groups.
Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse
[email protected]
Pour résilier votre abonnement envoyez un e-mail à l'adresse [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---