I have two identical controllers Submissions and Activities, both using the default resource mapping for routes. I want to use some RJS for the show method, both of which can be accessed as such as a GET request:
/submissions/1.js
/activities/1.js
I have show.rjs inside their respective view folders like so:
../submissions/show.rjs
../activities/show.rjs
Out of the box, this works for activities but not for submissions. To fix it, I had to rename show.rjs to show.js.rjs.
Why is this so? I have noticed a similar occurrence for HTML files but am not able to reproduce it. Is there some configuration apart from the routes that I am unaware of that is doing this?
Thanks.