_whitelogger has joined #amber
<
FromGitter>
<waghanza> hi, does amber support route constraint
feepbot has quit [Ping timeout: 245 seconds]
feepbot has joined #amber
<
FromGitter>
<Blacksmoke16> `get '/:id', to: 'articles#show', constraints: { id: /\d.+/ }`
<
FromGitter>
<Blacksmoke16> or something like that, depends on what the controller/method name is
<
FromGitter>
<Blacksmoke16> @waghanza
<
FromGitter>
<Blacksmoke16> try like `get '/user/:id', SomeController, :method_name, constraints: { id: /\d+/ }`
<
FromGitter>
<waghanza> same
<
FromGitter>
<Blacksmoke16> hmm
<
FromGitter>
<Blacksmoke16> `get "/user/:id", ApplicationController, :get, constraints: { id: /\d+/ }`
<
FromGitter>
<Blacksmoke16> if that doesnt work then IDK :shrug:
<
FromGitter>
<Blacksmoke16> yea i dunno, maybe @eliasjpr or @drujensen would have an idea
<
FromGitter>
<drujensen> try `get "/user/:id", ApplicationController, :get, constraints: {“id” => /\d+/}`
<
FromGitter>
<drujensen> looks like named tuples is not supported. :-(
<
FromGitter>
<waghanza> same error @drujensen