0👍
Where you are translating from rails to js you need it to generate a url not a path to be interpreted by rails.
Try sending profile_url(@profile) instead as this will generate what you are expecting.
Source:stackexchange.com
0👍
Where you are translating from rails to js you need it to generate a url not a path to be interpreted by rails.
Try sending profile_url(@profile) instead as this will generate what you are expecting.