Displaying 2 results from an estimated 2 matches for "_score".
Did you mean:
score
2007 Jan 27
0
Problems with implementation of dynamically updating scores
...----------------------------------------------
def arouse
@p=Product.find(params[:id])
@list=List.find_favolist(session[:user_id])
@li=LineItem.findaddeditem(@p.id,@list.id)
fair=-IARJQAGddPM@public.gmane.org?
puts fair
if fair
puts ''success''
@p.popular_score +=1
@p.save
puts "add"
@li = LineItem.new
@li.product_id =params[:id]
@li.list_id =-7ETwYBW1OEA@public.gmane.org
@li.likeornot =1
@li.created_at = Time.now
puts "line"
@li.save
redirect_to_index("推文成功") --> never worked, why?...
2007 Jan 29
6
RJS problem
...----------------------------------------------
def arouse
@p=Product.find(params[:id])
@list=List.find_favolist(session[:user_id])
@li=LineItem.findaddeditem(@p.id,@list.id)
fair=-IARJQAGddPM@public.gmane.org?
puts fair
if fair
puts ''success''
@p.popular_score +=1
@p.save
puts "add"
@li = LineItem.new
@li.product_id =params[:id]
@li.list_id =-7ETwYBW1OEA@public.gmane.org
@li.likeornot =1
@li.created_at = Time.now
puts "line"
@li.save
redirect_to_index("推文成功") --> never worked, why?...