search for: current_number

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

2006 Jan 11
3
How do you do a custom sql call in rails?
...the customer (see schema snip below). I need to have a way of generating the next available number for that particular account. I have used a custom sequence table to do this type of thing in the past. The sql I''ve used is the following: begin update customer_number_sequences set current_number = current_number + 1 where account_id = 12345 select current_number from customer_number_sequences where account_id = 12345 commit So my question is how if it all can I integrate this into my @customer.save call??? Should I add a before_create method to the Customer model and do a custom sql c...
2010 Jul 13
1
will_paginate destroys link_to_remote?!
...ram_name %> The add_character function in the controller is being called and doesn''t throw any error but the only thing that is not working anymore is the AJAX stuff in the add_character.rjs which is being called after the function in the controller (of course): page.replace_html "current_number", @current_number The current_number is not being updated anymore. All I did was that I moved the <% for ..%> from the view to a partial and added will_paginate. Does anyone know why this is not working anymore? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this...