Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update playground.rs to align with docs [chore] #1203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sanderjson
Copy link

Fix bug

error[E0422]: cannot find struct, variant or union type `ActiveModel` in this scope
  --> examples/playground.rs:10:47
   |
10 |     let active_model: articles::ActiveModel = ActiveModel {
   |                                               ^^^^^^^^^^^ not found in this scope
   |
help: consider importing one of these structs
   |
1  + use crate::articles::ActiveModel;
   |
1  + use loco_rs::tests_cfg::db::test_db::ActiveModel;
   |
1  + use myapp_docs_demo::models::articles::ActiveModel;
   |
1  + use myapp_docs_demo::models::users::ActiveModel;
   |

For more information about this error, try `rustc --explain E0422`.
error: could not compile `myapp` (example "playground") due to 1 previous error

Copy link
Contributor

@kaplanelad kaplanelad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @sanderjson, for your contribution!

Please ensure that only the changes under loco-new/base_template/examples/playground.rs.t are kept.

The demo will be removed as part of #1156. Additionally, the startes/* directory contains our old Loco templates, which are deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants