rails g model Listing team:references name:string
bin/super-scaffold crud Listing Team name:text_field --sidebar="ti.ti-world"
rails db:migrate
bin/super-scaffold action-model:targets-one-parent CsvImport Listing Team
When trying to access the dashboard, you get a stack level too deep error.
Closing this one because #26 was merged, the targets-one-parent tests are passing in the starter repository, and I'm not getting the stack level too deep error anymore when accessing the dashboard.
Steps to reproduce
When trying to access the dashboard, you get a
stack level too deep
error.The cause
app/views/account/listings/csv_import_actions/_new_button_many.html.erb
:Listings::CsvImportAction.new(team: team)
here is causing the error because there are conflicting associations in the model:Removing
has_one
takes care of the error, but we should edit these when scaffolding based on whether the parent isTeam
or not.