Any idea why records entered for this model aren't being saved? The
controller and all other files (except models) are unmodified from its
default state. The other models are saving properly. No apparent errors are
listed in the dev log. Rails 2.1 and hobo 0.7.99.2 with sqllite.
Thanks!
class Dog < ActiveRecord::Base
hobo_model # Don't put anything above this
fields do
name :string
trip :integer
sort :integer
notes :text
timestamps
end
belongs_to :user
has_many :schedules, :dependent => :destroy
has_many :services, :through => :schedules
# --- Hobo Permissions --- #
def creatable_by?(user)
user.administrator?
end
def updatable_by?(user, new)
user.administrator?
end
def deletable_by?(user)
user.administrator?
end
def viewable_by?(user, field)
true
end
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---