fixed bug with newer rails 4 style params