Form_tag with the new template


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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs