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

deleting scaffold cause errors #25

Open
fkasiri opened this issue Mar 2, 2021 · 1 comment
Open

deleting scaffold cause errors #25

fkasiri opened this issue Mar 2, 2021 · 1 comment

Comments

@fkasiri
Copy link

fkasiri commented Mar 2, 2021

I have the done the following scaffold and wanted to delete it but it caused errors:

rails g beautiful+_scaffold site_type type:string notes:text

got the following error which caused rails s not to work

versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.1.3/lib/action_dispatch/routing/mapper.rb:2094:in `block in concerns': No concern named bs_routes was found! (ArgumentError)

@rivsc
Copy link
Owner

rivsc commented Mar 2, 2021

You must remove "concerns: :bs_routes" in your resource (in routes.rb file).

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

No branches or pull requests

2 participants