search for: order_status

Displaying 5 results from an estimated 5 matches for "order_status".

2006 Jul 21
1
Partial, Table Layout, Multiple Controllers/Models... DRY?
Hi, I am almost embarrased to ask this and I am sure it has been answered previously but the search feature is down on ruby-forum so I am not finding the answer. I have several controllers (leads, orders, activities, etc...). I have a ton of repeated html in each of the views for these controllers. For example, my list view has the same table/tr/td and for..in type of code and it just
2006 Mar 07
1
decorators for models?
...ss (AR::Decorator), each decorator would becom instance variable @model, which could be used to refer to original model, and this could happen automagically depending on the class name. There would be some default functions, like field_title that would return humanized column descriptions (i.e. order_status -> Order status) This is how one such decorator could look like class OrdersDecorator < ActiveRecord::Decorator @datagrid_fields=%w(id, name, country) def datagrid_field_title_id "Order ID" end def datagrid_row_style(m) ''big-order'' if m.total&gt...
2006 Jan 12
3
Asterisk Prepaid Solution
Hi All, Any solution on how I can implement prepaid billing on asterisk? But not the calling card type, just a simple Custome rwill buy credit, consume then buy again. Also, is there a solution for that when you combine asterisk with ser? Regards, Ronald
2006 Jun 28
6
select_tag
in my controller @cursos = Curso.find_all in my view i''m trying to do a select_tag with the results @cursos, using a helper select_tag "name" options_for_select(@cursos) --------> not works select_tag "name" @cursos --------> not works how to do it, using the helper? tks -- Posted via http://www.ruby-forum.com/.
2006 May 10
12
how best to implement lookup table?
...ld I just implement a has_many relationship? Let''s say these are Order status codes, would the StatusCode have many Orders? This seems right from a database POV (normalizing the code and description into a separate table), but sort of goofy from a coding POV. "Order belongs_to :order_status_code" seems a little off to me. It would be nice if I could somehow automatically have the status description automatically be added as a read-only attribute to the Order class. Suppose the above approach is the correct one. Would I still use the standard id column as my primary key, or...