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.
Gino M. (Guest)
on 2009-03-16 21:59
Sto provando web services con REST.
ho definito
il modello

class G1Item < ActiveResource::Base
  self.site = 'http://client:removed_email_address@domain.invalid...

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
Gino M. (Guest)
on 2009-03-18 19: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.