I overrided user.rb by just creating new file user.rb with class
User<ActiveRecord::Base end. I get this error when go from Community
to My Profile and then to site_index:
Rendering base/site_index
←[4;36;1mUser Load (0.0ms)←[0m ←[0;1mSELECT * FROM `users` WHERE
(`users`.`id` = 1) LIMIT 1←[0m
←[36;2mvendor/plugins/community_engine/plugins/paginating_find/lib/
paginating_find.rb:103:in `find'←[0m
←[36;2mvendor/plugins/community_engine/app/models/user.rb:93:in
`find'←[0m
←[36;2mvendor/plugins/community_engine/lib/authenticated_system.rb:
15:in `logged_in?'←[0m
←[36;2mapp/views/base/site_index.html.haml:3:in
`_run_haml_app47views47base47site_index46html46haml'←[0m
←[36;2mvendor/plugins/community_engine/lib/
localized_application.rb:25:in `set_locale'←[0m
←[36;2mvendor/plugins/community_engine/lib/
flash_session_cookie_middleware.rb:14:in `call'←[0m
←[36;2mvendor/plugins/community_engine/lib/
flash_session_cookie_middleware.rb:14:in `call'←[0m
←[4;35;1mUser Load (0.0ms)←[0m ←[0mSELECT * FROM `users` WHERE
(`users`.`id` = 1) ←[0m
←[35;2mvendor/plugins/community_engine/plugins/paginating_find/lib/
paginating_find.rb:103:in `find'←[0m
←[35;2mvendor/plugins/community_engine/app/models/user.rb:93:in
`find'←[0m
←[35;2mvendor/plugins/community_engine/app/views/posts/
_post.html.haml:6:in
`_run_haml_vendor47plugins47community_engine47app47views47posts47_post46html46haml_locals_object_post_post_counter'←
[0m
←[35;2mapp/views/base/site_index.html.haml:17:in
`_run_haml_app47views47base47site_index46html46haml'←[0m
←[35;2mvendor/plugins/community_engine/lib/
localized_application.rb:25:in `set_locale'←[0m
←[35;2mvendor/plugins/community_engine/lib/
flash_session_cookie_middleware.rb:14:in `call'←[0m
←[35;2mvendor/plugins/community_engine/lib/
flash_session_cookie_middleware.rb:14:in `call'←[0m
ActionView::TemplateError (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.include?) on line #6 of vendor/
plugins/community_engine/app/views/posts/_post.html.haml:
3: = link_to post.title, user_post_path(post.user, post), :rel =>
'bookmark'
4:
5: .vcard.author
6: %h5
7: %a{:href=>"#{user_post_path(post.user,
post)}", :class=>"photo", :rel=>"bookmark"}
8: =image_tag((post.first_image_in_body ||
post.user.avatar_photo_url
(:thumb)), :alt=>"", :width=>"50", :height=>"50")
9:
generated code (actionpack (2.3.2) lib/action_controller/routing/
route.rb:160):5:in `generate_raw'
(eval):16:in `user_post_path'
vendor/plugins/community_engine/app/views/posts/_post.html.haml:
6:in
`_run_haml_vendor47plugins47community_engine47app47views47posts47_post46html46haml_locals_object_post_post_counter'
haml (2.2.1) lib/haml/helpers/action_view_mods.rb:11:in `render'
haml (2.2.1) lib/haml/helpers.rb:77:in `non_haml'
haml (2.2.1) lib/haml/helpers/action_view_mods.rb:11:in `render'
app/views/base/site_index.html.haml:17:in
`_run_haml_app47views47base47site_index46html46haml'
haml (2.2.1) lib/haml/helpers/action_view_mods.rb:13:in `render'
haml (2.2.1) lib/haml/helpers/action_view_mods.rb:13:in `render'
haml (2.2.1) lib/sass/plugin/rails.rb:19:in `process'
Rendered rescues/_trace (140.0ms)
Rendered rescues/_request_and_response (16.0ms)
Rendering rescues/layout (internal_server_error)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" 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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---