My View contain this code:
jQuery.ajax({
data: "val"= + val,
dataType: 'script',
ype: 'post',
url: "/portfolio/update"
);
In my controller I have this code:
j=params[:"val"]
h=j.split(" ")
Now I am getting this in my rails console:
Parameters = {"val"=>" Default id3 id4 id5 test1 test2 fro "}
and j is a nil class.
Any guesses why i am not receiving value in controller. I just started with fronted.