You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
In actions/statuses.go, I see:
/ Following naming logic is implemented in Buffalo:
// Model: Singular (Statuse)
// DB Table: Plural (statuses)
// Resource: Plural (Statuses)
// Path: Plural (/statuses)
// View Template Folder: Plural (/templates/statuses/)
Singular should be Status, but that's not the big problem. In actions/statuses.go it had this code throughout:
status := &models.Statuse{}
However, there was no models/statuse.go file. There was a models/status.go file.
In the models/status.go everything referred to the singular so I had to update this section:
// Statuses is not required by pop and may be deletedtypeStatuses []Status// String is not required by pop and may be deletedfunc (sStatuses) String() string {
js, _:=json.Marshal(s)
returnstring(js)
}
The text was updated successfully, but these errors were encountered:
At the command line I typed:
In
actions/statuses.go
, I see:/ Following naming logic is implemented in Buffalo:
// Model: Singular (Statuse)
// DB Table: Plural (statuses)
// Resource: Plural (Statuses)
// Path: Plural (/statuses)
// View Template Folder: Plural (/templates/statuses/)
Singular should be Status, but that's not the big problem. In actions/statuses.go it had this code throughout:
However, there was no
models/statuse.go
file. There was amodels/status.go
file.In the
models/status.go
everything referred to the singular so I had to update this section:The text was updated successfully, but these errors were encountered: