RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: madebylam
Site: http://madebylam.com
Hi ryan,
Thanks for the screencast. How do I display the message from transaction associated with particular order? I would like to output the error in flash message.
For example:
if @order.purchase .... else flash[:error] = @order.transactions.response format.html { render :action => "new" } end
The code above doesn't work though.
Thanks!
Hi ryan,
Thanks for the screencast. How do I display the message from transaction associated with particular order? I would like to output the error in flash message.
For example:
if @order.purchase
....
else
flash[:error] = @order.transactions.response
format.html { render :action => "new" }
end
The code above doesn't work though.
Thanks!