I'm not sure. I can't recreate the error on a fresh CE install. Have you overridden the photos_controller or something? Without a failing testcase or steps that I can use to recreate this on a fresh install, I can't help debug this any further. Thanks, Bruno
On Thu, Sep 17, 2009 at 3:29 AM, TomV <[email protected]> wrote: > > Hi Bruno, > > My CE version is 1.0.3 and I'm running on Rails 2.3.3. > > This is what my development log says when I add a new picture to an > album: > ------------------ > > Processing PhotosController#new (for 127.0.0.1 at 2009-09-17 10:17:37) > [GET] > Parameters: {"album_id"=>"1", "user_id"=>"tverbroekken"} > > ... [Lots of statements] .... > > Processing PhotosController#create (for 127.0.0.1 at 2009-09-17 > 10:18:12) [POST] > Parameters: {"photo"=>{"name"=>"Test Picture", > "uploaded_data"=>#<File:/var/folders/-G/-GK60C7bEKGOWBih0Jkm2k+++TI/- > Tmp-/RackMultipart824-0>, "description"=>"This is a test"}, > "commit"=>"Creƫr", > "authenticity_token"=>"1U49TUQSuaHN3OMvsMWs0k5yoBLx1CQ5LYKkE25kmA0=", > "tag_list"=>"", "user_id"=>"tverbroekken"} > > ----------------- > > There are no errors but it looks like the album id is missing from the > create parameters. The album id is present during the #new controller > command, so in between new and create it loses the album id somewhere? > Could that be a redirect to a wrong route or something else? > > > On 16 sep, 17:09, Bruno Bornsztein <[email protected]> wrote: > > Hi Tom,What version of CE and Rails are you on? Do your tests pass (rake > > community_engine:test)? Do you see any errors in your log? > > Thanks, > > Bruno > > > > > > > > On Wed, Sep 16, 2009 at 2:49 AM, TomV <[email protected]> wrote: > > > > > Hey everyone, > > > > > I'm currently trying to add photos to an album. Uploading a photo > > > works perfectly, but when I'm adding them to an album the photo gets > > > uploaded without being linked to the album. Is there some routing > > > error or something else going on? I checked the database and there are > > > no album ids with the photos. > > > > > The URL I have for adding photos to an album is the following: > > > photo_manager/albums/1/photos/new > > > > > This page uploads a photo but fails to add it to the album. When > > > anyone knows how to fix this then I highly appreciate it. > > > > > Thanks in advance, > > > > > Tom. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
