Displaying 2 results from an estimated 2 matches for "likeornot".
2007 Jan 27
0
Problems with implementation of dynamically updating scores
...em.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?
else
redirect_to_index("一人只有一票唷") --> never worked, why?
end
end
-----------------------------------------------------------...
2007 Jan 29
6
RJS problem
...em.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?
else
redirect_to_index("一人只有一票唷") --> never worked, why?
end
end
-----------------------------------------------------------...