search for: popular_score

Displaying 3 results from an estimated 3 matches for "popular_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?...
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web Development with Rails. In interation E1 NoMethodError in Admin#checkout Showing app/views/admin/checkout.rhtml where line #12 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? Extracted source (around line #12):