http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html
example taken form the above link: # Note: a @person variable will have been created in the controller. # For example: @person = Person.new <% form_for :person, @person, :url => { :action => "create" } do |f| %> <%= f.text_field :first_name %> <%= f.text_field :last_name %> <%= submit_tag 'Create' %> <% end %> what you got is this: <% form_for(@advertisement, :html => { :multipart => true }) do |f| %> <%= f.text_field :title %> <%= f.text_area :description %> <%# ... %> <%= f.submit 'Submit' %> now try changing your first line to: <% form_for :advertisement, @advertisment, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> hope this helps. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---