Hi, all -- I'm excited about this framework, having just learned enough Ruby on Rails to be dangerous. But I'm having trouble with setting up a basic users table as outlined on the cfwheels.org site. I'm running Coldfusion 9 on a Linux server, talking to Microsoft SQL Server 2012 Express. Wheels is installed in a directory called 'cfw', and my datasource has the same name and verifies. Once I've followed all the directions and attempt to visit the 'new' action I get:--Wheels.TableNotFound
The users table could not be found in the database.
Suggested action
Add a table named users to your database or tell Wheels to use a different table for this model. For example you can tell a usermodel to use a table called tbl_users by creating a User.cfc file in the models folder, creating an init method inside it and then callingtable("tbl_users") from within it.
Error location
Line 5 in controllers/Users.cfc
3: 4: <cffunction name="new" access="package" output="false" returntype="void"> 5: <cfset user = model("user").new()> 6: <cfreturn /> 7: </cffunction>
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/1P627lOx3_kJ.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
Did you run the DBMigrate scripts? Click the DBMigrate link in the footer.Also, read up on how the plugin works.
On Thu, Jun 28, 2012 at 11:51 AM, Colin wrote:
Hi, all -- I'm excited about this framework, having just learned enough Ruby on Rails to be dangerous. But I'm having trouble with setting up a basic users table as outlined on the cfwheels.org site. I'm running Coldfusion 9 on a Linux server, talking to Microsoft SQL Server 2012 Express. Wheels is installed in a directory called 'cfw', and my datasource has the same name and verifies. Once I've followed all the directions and attempt to visit the 'new' action I get:Wheels.TableNotFound
The users table could not be found in the database.
Suggested action
Add a table named users to your database or tell Wheels to use a different table for this model. For example you can tell a usermodel to use a table called tbl_users by creating a User.cfc file in the models folder, creating an init method inside it and then callingtable("tbl_users") from within it.
Error location
Line 5 in controllers/Users.cfc
3: 4: <cffunction name="new" access="package" output="false" returntype="void"> 5: <cfset user = model("user").new()> 6: <cfreturn /> 7: </cffunction>
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/1P627lOx3_kJ.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+unsubscribe@googlegroups.com.
<cfset user = model("User").new()>BTW - I'm not totally sure why, but sometimes a simple reload=true is not enough. I have to do reload=development and then reload = production. --
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/zLKdIbRezeMJ.
Didn't someone else have an issue with SQL 2012?
On 29 June 2012 14:23, Tom Avey wrote:
I've learned to be really careful about the case of method cfc's and calls to the method from a controller on a linux server And even then to appeared to take a few reloads before it took.
Make sure the table is named User, the method is named "User.cfc" and in controller isBTW - I'm not totally sure why, but sometimes a simple reload=true is not enough. I have to do reload=development and then reload = production.<cfset user = model("User").new()>
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/zLKdIbRezeMJ.
On Thursday, June 28, 2012 3:07:24 PM UTC-4, Colin wrote:I did it in my Users controller, the 'new' method, but it didn't work.--
On Thursday, June 28, 2012 2:20:56 PM UTC-4, Tom Avey wrote:Try to capitalize User in the model call.
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To unsubscribe from this group, send email to cfwheels+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/oTvs_IBkqXwJ.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+unsubscribe@googlegroups.com.