This project is archived and is in readonly mode.
Creating a model named Format result in code 406
-
Fabian Schwahn
Thinking about it a little more, the controller probably mistakes params[:format] as the format of the query, that's why it says
without displaying a format at the end. Usually it says something like this:Processing by FormatsController#create as
Also, the parameters of the Format-model don't show up in the Parameters-hash which is displayed.Processing by PostsController#create as HTML
When the controller hits the respond_to-block, it can't find the right format and returns a 406? -
Ivan Torres (mexpolk)
Format is a known Reserved words see Reserved Words You Can’t Use on Rails Wiki.
Unless the intention is to make it work! ;)
-
Fabian Schwahn
Ah thanks, didn't know that page existed.
-
Mike Riley
- State changed from new to resolved
- Importance changed from to Low
Hello Fabian,
Looks like this issue is completed based on Ivan's reply. I am going to close it out. If this is indeed still open let us know so we can reopen it.
Mike Riley