<% form_for :classified, @classified, :url=>{ in this not both required remove @classified and try to run it
Wap Addon wrote:
<% form_for :classified, @classified, :url=>{ in this not both required remove @classified and try to run it
No change even after trying with
<% form_for(@classified, :html => { :multipart => true }) do |f| %>
<% form_for :classified, :url=>{ :controller=>'classifieds', :action=>'create'}, :html => { :multipart => true } do |f| %> <%= error_messages_for 'classified' %>
<%= submit_tag 'Post' %> <% end %>
write like this no for <% form_for(@classified, :html => { :multipart => true }) do |f| %> this
in ur case there are two parameter :classified,@classified required only 1 :classified/@classified
Wap Addon, thanks for your suggestions. But they are not working. Are they working for you?. Did you try it in Chrome for this or any of your rails app?