Displaying 1 result from an estimated 1 matches for "datatypes_url".
2007 Feb 26
0
Rest from won't submit
...bles with my form. I have a list of
data(movies,games,...) and when the user clicks on add datatype, an RJS
template generates a new form. I''m building a restful application. So
this is the from that is inserted as a partial by my RJS template:
<% form_for :datatype,datatype,:url => datatypes_url(cat.id), :html => {
:method=> :POST } do |f| -%>
<%= f.text_field :name,:size=>15 %><%= submit_tag "Create" %>
<% end %>
then it should call this action in my controller:
def create
puts "create datatype"
end
I''m just d...