Forum: Ruby on Rails form_tag with the new template

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.
hiral_r (Guest)
on 2008-11-15 19:56
(Received via mailing list)
Hi,

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.