Your routes are named incorrectly, you're pairing a plural (resources
) with a singular (:package
).
If you will be working with multiple packages, you should declare resources :packages
- this will generate you correctly named routes for all seven RESTful actions (index, show, new, create, edit, update, destroy).
If you are only working with a single package, you will need to specify the URL as an option for your form manually, eg.
form_for [:admin, @newpackage], url: admin_package_path do |f|