0

I'm using a typical Rails resources route: resources :wallets

Which would generally produce a show route of /wallets/123.

Instead of the 123 I'd like to pass in a string with a dot in it like this: /wallets/example.eth

But at the moment, Rails seems to strip out anything from the dot and after.

Processing by WalletsController#show as */*
Parameters: {"id"=>"example"}

How can I make sure the entire example.eth passes through to params[:id]?

Shpigford
  • 24,748
  • 58
  • 163
  • 252

0 Answers0