I ran into the same problem recently and it was basically fuming when I
realized it all boiled down to the incorrect parameters being passed to
redirect_to().
For your code sample below,
redirect_to :list
should be
redirect_to action => :list
xplodersuv wrote:>
> I was trying to use postbacks, but its not working.
>
> def edit
> @xxxx= xxxx.find_by_id(params[:id]) || xxxx.new
> if request.post?
> @xxxx.attributes = params[:xxxx]
> redirect_to :list and return if @xxxx.save
> end
> end
>
--
View this message in context:
http://www.nabble.com/Postback-Action-Problem-tf2101737.html#a5978139
Sent from the RubyOnRails Users forum at Nabble.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---