Sign in through GitHub

Please read for an updated status on RailsCasts:

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!