Displaying 1 result from an estimated 1 matches for "bpagescontroller".
Did you mean:
pagescontroller
2012 May 24
3
rails ajax issues
...;).fadeOut(3000);
}
else
{
$.ajax({
type: "POST",
url: "http://localhost:3000/bpages/add",
data: dataString,
success: function(){
$(''.adddtl'').fadeIn(200).show();
$(".adddtl").fadeOut(3000);
}
});
}
return false;
});
*Controller*
class *BpagesController* < ApplicationController
def add
*@number* = params[:bnumber]
*render ''bpages/page''*
end
end
After the function *add* i need to display the value of variable *@number *in
the* page.html.erb, *for that here i use the* render ''bpages/page''*...