RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Rails: Be careful with params.merge()

I've seen a lot of people doing it and I used to do it too, use params.merge(…) in link_to or redirect_to calls. You do this because you want to change one ore more parameters (like the locale, current page or search query) but leave the rest as it is. But heads up, there is an issue with this solution!

Comments

My name is precious.
i saw your profile today,
Please i will like you to
reply me through my private email
box( preciousloveadlan25@gmail.com )
I have something important to tell you
and (remember the distance or colour
does not matter but love matters a lot in life)
and a business proposal for both of us.
My ID;( preciousloveadlan25@gmail.com )preciouslove - March 21, 2014 13:20

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!