 	,birthdaymonth=10
 	,birthdayyear=1972
 	,isactive=1
-);
-
-loc.user = model("user").create(
+)>
+
+<cfset loc.user = model("user").create(
 	username='perd'
 	,password='perd123'
 	,firstname='Per'

	</cfloop>
</cfif>

<cfscript>
// create view
$query(
	datasource=application.wheels.dataSourceName,
	sql="
		CREATE VIEW userphotos AS
		SELECT u.id AS userid, u.username AS username, u.firstname AS firstname, u.lastname AS lastname, g.title AS title, g.id AS galleryid
		FROM users u INNER JOIN galleries g ON u.id = g.userid
	"
);

// populate with data
loc.user = model("user").create(
	username='tonyp'
	,password='tonyp123'
	,firstname='Tony'

	,birthdaymonth=11
	,birthdayyear=1975
	,isactive=1
)>

<cfset loc.user = model("user").create(
	username='chrisp'
	,password='chrisp123'
	,firstname='Chris'
