Beautiful-Scaffold icon indicating copy to clipboard operation
Beautiful-Scaffold copied to clipboard

deleting scaffold cause errors

Open fkasiri opened this issue 3 years ago • 1 comments

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)

fkasiri avatar Mar 02 '21 20:03 fkasiri

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

rivsc avatar Mar 02 '21 21:03 rivsc