You probably have a reloading problem (your User gets reloaded, but CE
doesn't). Try putting this in your development.rb:
config.after_initialize do
ActiveSupport::Dependencies.load_once_paths =
ActiveSupport::Dependencies.load_once_paths.select {|path| (path =~
/(community_engine)/).nil? }
end
end
On Fri, May 29, 2009 at 1:36 AM, lakai <[email protected]> wrote:
>
> Hi Bruno, thx for your reply!
>
> Yes I'm able to install CE from the template without problems.
>
> I also do override models, controllers and views, e.g. the
> UsersController and the UsersModel!
>
> Thanks in advance,
> AS
>
> On May 28, 6:04 pm, Bruno Bornsztein <[email protected]>
> wrote:
> > Are you overriding any CE controllers or models? Are you able to install
> the
> > CE app from the template:
> > rails your_app_name -mhttp://
> www.communityengine.org/install_template.rb
> >
> > Thanks,
> > Bruno
> >
> > On Thu, May 28, 2009 at 3:49 AM, lakai <[email protected]> wrote:
> >
> > > Hi!
> >
> > > First of all ... thanks for the great CE-Application!
> >
> > > My problem is:
> >
> > > After the migration from CE Rails 2.1 to CE Rails 2.3.2 (i replaced
> > > the CE-folder with the new one and did everything explained in the
> > > HowTo!) I run into weired errors ...
> >
> > > - If a user uploads a photo, the corresponding page
> > >http://localhost:3000/xxx/photos/9
> > > throws "undefined method `photos' for "#<User:0x6d680c0>":User". After
> > > restarting the server everything works fine without problems.
> >
> > > - same with the activities page ...
> http://localhost:3000/activities/xxx.
> > > ..
> > > first try throws a
> > > "undefined method `to_param' for "#<User:0x6c73ad4>":User" ...
> > > at
> > > "= link_to image_tag(activity.item.public_filename(:thumb), :width
> > > => '50px'), user_photo_path(activity.item.user, activity.item)
> > > in the activity-partial ...
> > > after restarting the server everything works fine.
> >
> > > It seems that this error has something to do with the photo
> > > management ... other activities e.g. like "xxx logged in" don't throw
> > > errors ...
> >
> > > Has anyone any idea and/or solution to this?
> >
> > > with best regards,
> > > AS
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---