Ok. The problem is that in the Rapid Rails 3 with Hobo tutorial, on page 
229 it says to change the permissions for create_permitted to 
acting_user.administrator?. It should probably say "    
acting_user.administrator? ||     self.class.count == 0"

Once I changed it to that it worked just fine.

Jim

On Saturday, April 21, 2012 4:45:39 PM UTC-6, Bryan Larsen wrote:
>
> Have you modified the permissions or the lifecycle for the user model?
>
> Bryan
>
>
> On Sat, Apr 21, 2012 at 6:42 PM, jhstephenson <[email protected]> wrote:
> > The front page of the app seems to know that there aren't any records in 
> the
> > User table because it has the message:
> >
> > There are no user accounts - please provide the details of the site
> > administrator
> >
> > But the fields to enter the administrator do not show up.
> >
> >
> >
> > On Saturday, April 21, 2012 4:14:43 PM UTC-6, jhstephenson wrote:
> >>
> >> That is interesting. There are no records in the Users file.
> >>
> >> Jim
> >>
> >> On Saturday, April 21, 2012 3:37:43 PM UTC-6, Bryan Larsen wrote:
> >>>
> >>> The "initial user set" flag is not a flag, it is just "Users.count >
> >>> 0".   So if you really want to reset it, just remove all your users.
> >>> :)
> >>>
> >>> cheers,
> >>> Bryan
> >>>
> >>>
> >>> On Sat, Apr 21, 2012 at 5:36 PM, jhstephenson <[email protected]> 
> wrote:
> >>> > Somehow the application I am working on thinks that the initial user
> >>> > has
> >>> > already been set. I took a copy of the app home to work on and the
> >>> > original
> >>> > did have one set. But on my home computer, after cloning the app, it
> >>> > think
> >>> > that I have already set the administrator user and password.
> >>> >
> >>> > How do I reset the application so that it prompt me for the initial
> >>> > user/administrator?
> >>> >
> >>> > Jim
> >>> >
> >>> > --
> >>> > You received this message because you are subscribed to the Google
> >>> > Groups
> >>> > "Hobo Users" group.
> >>> > To view this discussion on the web visit
> >>> > https://groups.google.com/d/msg/hobousers/-/nFR6uQg1LtQJ.
> >>> > 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.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Hobo Users" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/hobousers/-/Cjq48w9BSNgJ.
> >
> > 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/oNh8eGTA5HQJ.
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