Displaying 5 results from an estimated 5 matches for "sort_nam".
Did you mean:
sort_name
2005 Dec 10
0
Paginate - Count(*) Broken or Am I Cheating?
I have the following paginator setup:
@merch_pages, @merch = paginate :merch_item, :per_page => 15, :select =>
''DISTINCT mi.id, mi.merch_image, mi.created_at, mi.artist_id,
mi.item_description, art.sort_name'', :join => ''as mi JOIN merch_formats mf
ON mi.id = mf.merch_item_id JOIN artists art ON mi.artist_id = art.id'',
:order => ''art.sort_name'', :conditions => ["mf.active_status = 1 AND
format_name = ? AND format_name <> ''Poster&...
2006 Apr 09
4
Inheritance via Though Associations?
...ontainer_id, :integer
t.column :collection_id, :integer
t.column :original_id, :integer
t.column :event_id, :integer
end
create_table :contributors do |t|
t.column :type, :string, :default => "Person"
t.column :sort_name, :string, :limit => 255, :null => false
end
create_table :contributions do |t|
t.column :reference_item_id, :integer
t.column :agent_id, :integer
t.column :type, :string
t.column :position, :integer
end
Drawing on t...
2006 Apr 02
0
STI and through
...e are the first two:
CREATE TABLE reference_items (
"id" integer primary key,
"type" varchar(20),
"title" varchar(255),
"year" year(4)
);
CREATE TABLE "agents" (
"id" integer primary key,
"type" varchar(20),
"sort_name" varchar(255),
"description" text
);
So I''ve got ReferenceItem and Agent classes, each of which has subclasses (for
the first, stuff like Book, Article, etc.).
The third key table links the above:
CREATE TABLE contributors (
"reference_item_id" integer,...
2013 Apr 11
0
[PATCH] Btrfs-progs: enhance 'btrfs subvolume list'
...+void btrfs_list_clear_all_print_columns(void)
+{
+ int i;
+
+ for (i = 0; i < BTRFS_LIST_ALL; i++)
+ btrfs_list_columns[i].need_print = 0;
+}
+
void btrfs_list_setup_print_column(enum btrfs_list_column_enum column)
{
int i;
@@ -216,6 +305,16 @@ static int btrfs_list_get_sort_item(char *sort_name)
return -1;
}
+static int btrfs_list_get_field_item(char *field_name)
+{
+ int i;
+
+ for (i = 0; i < BTRFS_LIST_MAX; i++)
+ if (strcmp(field_name, all_field_items[i]) == 0)
+ return i;
+ return -1;
+}
+
struct btrfs_list_comparer_set *btrfs_list_alloc_comparer_set(void)
{
struct bt...
2011 Oct 26
6
Add an index to a form
Hello,
I''m having some trouble with forms, my app allows to enter data by
using a multi-step form that has 7 steps.
There are 3 steps that may let the user to add 1 form, for example
there''s a step called "children"
and that children has the following fields:
* name
* age
* gender
but one father may have more than 1 child and I''m adding another form
with