> I have tried to insert a raise after request.post? but my application
> doesn't make contact with this.
>
> Of course, I've ensured my form method is set to "post".
Hi,
Why you want to post your form on same(i.e edit) method..??
As in rails already has CRUD good feature. So y need to custom your form
submit flow.?
Anyway.. I would give following solution for you case
1- check that routes.rb file
if u have
map.resources :product_admin
then replace those routes using
map.with_options :controller => :product_admin do |pp|
pp.edit 'product_admin/edit/:id', :action => :edit
..
..ur all methods routes should be here
..
end
2 - check you edit.html.erb file
add :url => {:action => :edit} in you form tag
One main thing in your controller prefer params[:product_admin] or
whatever ur form array instead of request.post?
like
if params[:product_admin]
...
end
I hope this will help you!!
Good Luck ;)
-Ganesh K
--
Posted via http://www.ruby-forum.com/.
--
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.