You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
On the production floor (my workplace, proj is still pending development), I added new route directly to your app. Here how I tried with Assembly model
extendslayoutblockcontent
h1= title
p This is Sequelize greeting you :)
h2 Assembly Listing
ul
each assembly in assemblys
li
=assembly.number
|
| (
a(href="/users/"+assembly.revision+"/destroy") Destroy
| )
If all go like this, I get assemblys displayed correctly.
When I tried with Assembly in place of (au lieu de) orm_assembly_table, I encountered error of undefined. So, in a router.get(), what should be used as property of models? I tried console.log(models) the models object in models/index.js and saw something like
Hi,
On the production floor (my workplace, proj is still pending development), I added new route directly to your app. Here how I tried with Assembly model
If all go like this, I get assemblys displayed correctly.
When I tried with Assembly in place of (au lieu de) orm_assembly_table, I encountered error of undefined. So, in a router.get(), what should be used as property of models? I tried console.log(models) the models object in models/index.js and saw something like
models: { orm_assembly_table: orm_assembly_table }
Advices? Thanks
P/S: I like to write it models.Assembly than the actual table name (orm_assembly_table, which is not nice) but I can't get it to work.
The text was updated successfully, but these errors were encountered: