Skip to content

POST and PUT request params get dropped (rails 4, angularjs) #417

Closed
@hc5duke

Description

@hc5duke

This is likely the same issue from this google groups thread. I created two small projects to demonstrate the issue:

3 vs 4

Both projects are using grape at 948696f on master with identical gems whenever possible. -rails3 is at v3.2.13, and -rails4 is at v4.0.0.rc1.

In both 3 and 4, jQuery requests are handled correctly, but when angular sends POST or PUT requests, the request is received by grape without any params (unless you hard-code it as part of the url), as evidenced by results fields. It is possible that the issue is angularjs - but given that the requests are nearly identical between what angularjs is sending between these two projects, it seems more likely that something in grape gem + rails 4 interaction is the cause of this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions