ruby on rails - Route with multiple paramaters -


i have route:

match "/invite/create/:first_name/:last_name/:email/:phone" => 'invite#create'

and when try:

http://localhost:3000/invite/create/bill/bob/bob@gmail.com/1234567890

i no route matches [get] "/invite/create/bill/bob/bob@gmail.com/1234567890" error.

whats wrong route?

if have other routes start same url fx /invite, important define match "/invite/create/:first_name/:last_name/:email/:phone" => 'invite#create' first.

however not practice, should post request when creating new records.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -