Displaying 2 results from an estimated 2 matches for "findaddeditem".
2007 Jan 27
0
Problems with implementation of dynamically updating scores
...s
In the controller I have an action responsible for increase of the
score.It has a corresponding rjs in view.
--------------------------------------------------------------------------------
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...
2007 Jan 29
6
RJS problem
...s
In the controller I have an action responsible for increase of the
score.It has a corresponding rjs in view.
--------------------------------------------------------------------------------
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...