# Plugin Development: record.save() returns 404

**URL:** <https://meta.discourse.org/t/plugin-development-record-save-returns-404/88998>\
**Category:** Product Support\
**Created:** [June 2, 2018, 2:12pm UTC](https://meta.discourse.org/t/plugin-development-record-save-returns-404/88998 "2018-06-02T14:12:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [June 4, 2018, 6:18pm UTC](https://meta.discourse.org/t/plugin-development-record-save-returns-404/88998/3 "2018-06-04T18:18:17Z")

</div>

By default, when you call save on your model, it’ll make a `POST` to `/<recordname>`.

I tried your example code and it seems that `route` is a reserved name, so I would recommend you use a different name.

Did you implement a server side route for your record to save to? For example a type of `widget` would save to `/widgets` as a `POST`. You can run `rake routes` on the command line to see the routes you’ve created.

---

_[View the full topic](https://meta.discourse.org/t/plugin-development-record-save-returns-404/88998)._
