Forum: Rails France error with rails2.1.2.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F7771106c97ecf3fab4c35d70290c2c1?d=identicon&s=25 Santosh Turamari (santoshturamari)
on 2008-11-06 11:58
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".
A99870c1391c39da2089649745965bda?d=identicon&s=25 Jean-François Trân (Guest)
on 2008-11-06 12:13
(Received via mailing list)
Le 6 novembre 2008 11:58, Santosh Turamari 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_
F7771106c97ecf3fab4c35d70290c2c1?d=identicon&s=25 Santosh Turamari (santoshturamari)
on 2008-11-06 12:22
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_
A99870c1391c39da2089649745965bda?d=identicon&s=25 Jean-François Trân (Guest)
on 2008-11-06 13:07
(Received via mailing list)
2008/11/6 Santosh Turamari :

> 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_
F7771106c97ecf3fab4c35d70290c2c1?d=identicon&s=25 Santosh Turamari (santoshturamari)
on 2008-11-06 13:33
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_
This topic is locked and can not be replied to.