Everything is working fine in local environment. All actions are doing fine in server as well except for one: the invalid form redirects to index of the the resource instead of sticking to the form.
1. Create New / Edit
2. Click 'Submit' -> calls 'post' action -> validation fails and returns to create method
3. Immediately the create method redirects to index of the resource.
When clicked back, the form with invalid errors is shown. What I want is, the form to stay at form when invalid fields are submitted.
I am unable to find any error logs, debugging is not helping either.
Can somebody help me with this?