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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---