I have model DigitalAsset and controller Assets (in routes resources :assets). When I writing form_for DigitalAsset.new it tries to call digital_assets_path. How can I override this behaviour (e.g. call assets_path).
Also when i using something like f.input :test it creates element with name digital_asset[test] instead of asset[test]. How can I change this too?
UPDATE: I’ve found that it gets its name from ActionController::RecordIdentifier.singular_class_name. Anyway should I override it for just one model?
For the form, you can use the parameter
:url(see doc)