search for: order_product

Displaying 2 results from an estimated 2 matches for "order_product".

2007 Apr 11
12
redirection doesn''t get detected well?
I''m doing a redirect in one of my controller actions and somehow I can''t spec it, see this pastie: http://pastie.caboo.se/53120. When following the link from a browser I''m being redirected to the right page. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Apr 03
1
Problem with UUID generated in partial not being unique
...ts being added to an order form, where nothing is saved to the DB until the end). Unfortunately when I add a new product line (using RJS page.insert.html rendering a partial) the new lines added all have the same UUID. Here''s the code from the (top of the) partial - <tr class="order_product" id ="<%= if order_product.new_record? UUID.random_create.to_s else order_product.id.to_s end %>"> If we have a new product added then we generate a UUID. If it is in edit mode, and we have an existing database record we using the ID of t...