start_with?('/admin') also matched /admin-invoice-form.js, returning 401
for the public JS asset that the New Invoice form depends on. Without it,
the "+ add line" button did nothing.
Require either the bare /admin path or a /admin/-prefixed one so sibling
assets in public/ that happen to share the prefix stay reachable.
|
||
|---|---|---|
| .. | ||
| admin_auth.rb | ||
| db.rb | ||
| invoice.rb | ||
| invoice_pdf.rb | ||
| mailer.rb | ||
| rate_limit.rb | ||
| s3.rb | ||