Forum: Italian Ruby user group Service REST

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4338d1d60dbb0eca2c74eb0ae5ffb9d3?d=identicon&s=25 Gino Ma (sij)
on 2009-03-16 20:59
Sto provando web services con REST.
ho definito
il modello

class G1Item < ActiveResource::Base
  self.site = 'http://client:client@xx.xxx.xxx.xx:8021/'

end

da console se scrivo

G1Item.find(1500)

mi ritorna il risultato

se faccio per esempio

G1Item.find(:all)
oppure
G1Item.find(:first, :conditions => " licence_id = 50")

e mi blocca il server chiamato?

cosa non ho capito ?

Ciao
4338d1d60dbb0eca2c74eb0ae5ffb9d3?d=identicon&s=25 Gino Ma (sij)
on 2009-03-18 18:19
Gino Ma wrote:

Ho capito

G1Item.find :all, :params => { :licence_id => 50 }

grazie lo stesso
This topic is locked and can not be replied to.