Displaying 1 result from an estimated 1 matches for "add_line_item".
Did you mean:
add_int_item
2007 Jan 15
5
ActionController::UnknownAction (No action responded to xxx)
...-----------------------
def push
# if fair
begin
@product = Product.find(params[:id])
rescue
logger.error("Attempt to access invalid product #{params[:id]}")
flash[:notice] = " "
redirect_to :action => :index
else
@list = List.new
@list.add_line_item(@product,1)
@list.name = 0
@list.user_id = session[:user_id]
@list.created_at = Time.now
@list.save
redirect_to_index(" ")
end
# end
end
def unpush
begin
@product = Product.find(params[:id])
rescue
logger.error("Attempt to access invalid...