[Jifty-commit] r7012 - jifty/trunk/lib/Jifty/Manual
Jifty commits
jifty-commit at lists.jifty.org
Tue May 12 14:13:41 EDT 2009
Author: c9s
Date: Tue May 12 14:13:39 2009
New Revision: 7012
Modified:
jifty/trunk/lib/Jifty/Manual/Cookbook.pod
Log:
fix cookbook "brief_description" section
Modified: jifty/trunk/lib/Jifty/Manual/Cookbook.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Cookbook.pod (original)
+++ jifty/trunk/lib/Jifty/Manual/Cookbook.pod Tue May 12 14:13:39 2009
@@ -313,9 +313,11 @@
=head2 Render model refers_to field as a select widget with meaningful display name
+See L<Jifty::Record> for C<brief_description> method.
+
Sometimes you need to render a column which is using C<refers_to> to other
-model. but you want not to display id of the entries , but meaningful display
-name instead.
+model. but you want not to display unique id of the entries , but meaningful
+display name instead.
use Jifty::DBI::Schema;
use MyApp::Record schema {
@@ -340,8 +342,8 @@
return $self->color_name;
}
-so that, when you render an field which refers to MyApp::Model::Color , it will render
-a select widget with the mapping color names for you.
+so that, when you render an field which refers to MyApp::Model::Color , it will
+render a select widget with the mapping color names instead the unique id for you.
=head2 Create mutually dependent models
More information about the Jifty-commit
mailing list