[Rails] Re: Paperclip not saving images

2010-08-25 Thread Kaspir Ghost
Fernando Perez wrote: > > I fell into that trap a few times in the past, so now I can quickly > notice it ;-) > Well I will definitely have to remember this, because that was extremely frustrating haha. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: Paperclip not saving images

2010-08-24 Thread Fernando Perez
> Awesome that solved it! Much appreciated :) I fell into that trap a few times in the past, so now I can quickly notice it ;-) -- http://digiprof.tv -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: Paperclip not saving images

2010-08-23 Thread Kaspir Ghost
Fernando Perez wrote: > There is a WARNING message in the log. Can't see it? I told you it was > hard to spot. > > So to solve your problem or at least move a step forward, change Album > so that it reads: > > attr_accessible :name, :photos_attributes Awesome that solved it! Much appreciated :

[Rails] Re: Paperclip not saving images

2010-08-23 Thread Fernando Perez
There is a WARNING message in the log. Can't see it? I told you it was hard to spot. So to solve your problem or at least move a step forward, change Album so that it reads: attr_accessible :name, :photos_attributes -- Posted via http://www.ruby-forum.com/. -- You received this message becau

[Rails] Re: Paperclip not saving images

2010-08-23 Thread Kaspir Ghost
Photo.create(:data => File.new("/home/kaspir/Pictures/backgrounds/bg.png") didn't return anything. this is my development log error, although I'm not exactly sure what it means. Processing AlbumsController#create (for 127.0.0.1 at 2010-08-23 12:31:08) [POST] Parameters: {"commit"=>"Submit"

[Rails] Re: Paperclip not saving images

2010-08-23 Thread Fernando Perez
Try creating a photo manually, so in script/console type: Photo.create(:data => File.new("/path/to/a/file")) Also check the rails log file for any warning/error message, beware it can be hard to spot in all the lines that get printed. -- Posted via http://www.ruby-forum.com/. -- You received