FYI, I never did figure out what the problem was with this, but after
noticing several other little quirks (some routes were incorrect for
instance), I decided to start again. I moved the directory, then re-
ran hobo and copied my existing models over. It's working now, so
clearly something went wrong with the generators (though very possibly
caused by user error) the first time I built the app.

On Sep 6, 7:03 pm, "Mike Payson" <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to