Forum: Ruby on Rails form_tag with the new template

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
hiral_r (Guest)
on 2008-11-15 19:56
(Received via mailing list)

I am trying to modify the existing template of new provided by rails
using form tag

My controller is languages
new.html.erb looks like this

<% form_tag :controller=> "languages", :action => "create" do %>
         Language <%= text_field_tag "language" %>
                       <%= submit_tag "Create" %>
<% end %>

Instead of

<% for_for(@language) |f| do %>
       Language<%= f.text_field :language %>
      <% f.submit "create" %>
<% end %>

Any reason this should not route properly.
I get a 500 Internal server error?
This topic is locked and can not be replied to.