RailsCasts Pro episodes are now free!

Learn more or hide this

Lam's Profile

GitHub User: madebylam

Site: http://madebylam.com

Comments by Lam

Avatar

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!