# Error while generating Scaffold in discourse

**URL:** https://meta.discourse.org/t/error-while-generating-scaffold-in-discourse/224590
**Category:** Development
**Created:** [April 18, 2022, 5:32am UTC](https://meta.discourse.org/t/error-while-generating-scaffold-in-discourse/224590 "2022-04-18T05:32:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![raghavendra](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@raghavendra](https://meta.discourse.org/u/raghavendra)
#### Post date: [April 18, 2022, 5:32am UTC](https://meta.discourse.org/t/error-while-generating-scaffold-in-discourse/224590/1 "2022-04-18T05:32:49Z")

</div>

Hi, my goal was to create a MVC architecture to [Uploading files in Discourse] using scaffold. while running the below command, I’m getting this error..!  
" rails generate scaffold Test image:string "

The current schema version is 20220413115007, but the one in the cache is 20220413131831.  
invoke active\_record  
create db/migrate/20220418051353\_create\_tests.rb  
create app/models/test.rb  
invoke rspec  
create spec/models/test\_spec.rb  
invoke resource\_route  
route resources :tests  
create app/serializers/test\_serializer.rb  
invoke ember:model  
Could not find “model.js.” in any of your source paths. Your current source paths are:

can anyone help me to sort out this error?
