Error with rails2.1.2


#1

I had rails1.2.3… now I have installed with 2.1.1…It has some clashes
while migrating… its giving error of this kind. It is not recognizing
<%= end %> as well as <%= end_form_tag %>

On line #108 of public/500.html

105:
106:   </tbody>
107:   </table>
108:   <%= end %>
109:   <!-- code for search ends -->
110: </td>
111:

its directly going to error page… and displaying “500 Internal Server
Error”.


#2

Le 6 novembre 2008 11:58, Santosh T. a écrit :

I had rails1.2.3… now I have installed with 2.1.1…It has some clashes
while migrating… its giving error of this kind. It is not recognizing
<%= end %> as well as <%= end_form_tag %>

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_


#3

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’})
%>

<% 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();}” } %>

<%= image_submit_tag "/images/search_yellow.gif" %>
<%= 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_

#4

2008/11/6 Santosh T. :

Thanks for ur reply,but I have a code which goes like this… I am not
using end_form_tag…using end itself.

Suppress the “end_form_tag is deprecated” part from my answer if
you wish, but please read it again carefully.

РJean-Fran̤ois.


Les 50 ans de Jeanie Longo : http://www.longo50.org
http://twitter.com/underflow_


#5

thank u once again for ur reply…
its my mistake.

Suppress the “end_form_tag is deprecated” part from my answer if
you wish, but please read it again carefully.

РJean-Fran̤ois.


Les 50 ans de Jeanie Longo : http://www.longo50.org
http://twitter.com/underflow_