Displaying 3 results from an estimated 3 matches for "complete_ord".
Did you mean:
complete_order
2010 Apr 14
1
Rails does not display form error message on a custom method
..., assign it to my
client, and then I head to my checkout screen where I confirm the items
and enter their customer order number and complete the order (submit).
Everything works great except that it doesn''t display error messages.
I''m able to display a flash error notice (seen in complete_order method)
when things go wrong but it doesn''t specify the details like a normal
form would. The error messages should appear if the customer order
number is not unique for that client.
Below is the custom method (checkout) related code.
Order Model:
[code]
validates_uniqueness_of :cus...
2010 Apr 14
1
Rails validations app specific problems
...irect_to( current_cart_url ) }
format.xml { render :xml => @order.errors, :status =>
:unprocessable_entity }
end
end
end
def cart
create_current_order unless current_order
@order = current_order
end
def checkout
@order = current_order
end
def complete_order
@order = current_order
respond_to do |format|
if @order.update_attributes(params[:order])
@order.complete #sets order completed at date and state to
''complete''
flash[:notice] = ''Thank you! Your order is being processed.''
f...
2012 Apr 20
44
Ceph on btrfs 3.4rc
After running ceph on XFS for some time, I decided to try btrfs again.
Performance with the current "for-linux-min" branch and big metadata
is much better. The only problem (?) I''m still seeing is a warning
that seems to occur from time to time:
[87703.784552] ------------[ cut here ]------------
[87703.789759] WARNING: at fs/btrfs/inode.c:2103