In Ruby on Rails, my current url has a query parameter of ?hello. Since the request.query_parameters hash will be {:hello=>nil}, how do I pass this with link_to? Rails seems to drop any query parameter that has a nil value.
Ruby on Rails: pass query parameters hash with key but nil value
450 views Asked by Starscream512 At
1
I don't think there's really an elegant way. The best hack seems to be something like this: