if @image.update_attributes params[:product_image]
if request.xhr?
render :json => { :status => 'success', :data => {:message => I18n.t('product_image.results.reordered')} }
...
Ruby DRY up a controller action
Any suggestions for DRYing ...
I need suggestions on how t...