Displaying 2 results from an estimated 2 matches for "joaz".
Did you mean:
joan
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
I''ve got something like this:
class Position < ActiveRecord::Base
end
class CartItem < Position
validates_uniqueness_of :product_id
end
When I try to save CartItem I get this error:
ArgumentError: wrong number of arguments (1 for 2)
from
/home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in
`exists?''
from
/home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in
`validates_uniqueness_of''
from
/home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_reco...
2007 Jun 19
4
ActionWebService for many APIs in rails?
Hi,
We''ve a pretty large rails application and we are currently deciding
moving a part of the application front-end to a desktop GUI.
For communication between application and GUI we decided to use an API.
So basically what I need is a way to have our models functionality
accessible by the GUI.
The basic idea:
Rails app provides API for models <-> HTTPS Connection <-> GUI