Having some issues with my User.rb model it appears with the default
admin subsite.
I started off with an invitation only system and realized that the
default behavior did not allow the admin user to create users, but
rather invite them only. I further wanted to be able to modify my
existing admin user as well as to, as noted, add new users. When I
first went to view the admin user that is initially created the system
blew up with the following error:
NoMethodError in Admin/users#show
Showing controller: admin/users; dryml-tag: show-page where line #1
raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.count
Extracted source (around line #1):
0
Rails.root: /path/to/project/project_name
With the following Application Trace:
app/views/taglibs/auto/admin/rapid/pages.dryml:118:in `block (12
levels) in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:117:in `block (11
levels) in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:117:in `block (10
levels) in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:116:in `block (9
levels) in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:116:in `block (8
levels) in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:115:in `block (7
levels) in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:115:in `block (6
levels) in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:83:in `block (5 levels)
in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:83:in `block (4 levels)
in show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:82:in `block (3 levels)
in show_page__for_user'
app/views/taglibs/themes/clean/clean.dryml:2:in `block in
page_with_aaa82d3a9ca5'
app/views/taglibs/themes/clean/clean.dryml:1:in
`page_with_aaa82d3a9ca5'
app/views/taglibs/application.dryml:12:in `block in
page_with_a46705120a36'
app/views/taglibs/application.dryml:11:in `page_with_a46705120a36'
app/views/taglibs/admin_site.dryml:14:in `block in
page_with_a7aea8568061'
app/views/taglibs/admin_site.dryml:13:in `page_with_a7aea8568061'
app/views/taglibs/auto/admin/rapid/pages.dryml:78:in `block in
show_page__for_user'
app/views/taglibs/auto/admin/rapid/pages.dryml:77:in
`show_page__for_user'
Request
Parameters:
{"id"=>"1-admin"}
--END PASTE--
I created a new project and was hopeful to get a quick idea of what
should be present to allow the admin user to create a new user,
however after copying the code from the "lifecycle" section I simply
was no longer able to invite a new user. Apparently I have to go
about creating a user by simply signing up for the moment, but I
ultimately want only the admin to create users.
So #1) what would that first error indicate? There does not appear to
be any db nils that could be causing the issue so I am not sure where
the "nil" is coming from that could be causing this issue.
#2) I need to create a robust admin interface for user creation as
well as maintenance of all of the other app components. Is there a
more in depth tutorial or discussion that I'm overlooking floating
around the cookbook or such that could help offer more direction and
insight into this for Hobo?
Thanks!
-George
--
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.