*** Quick help with paperclip ***

Hi All,

Someone reccomended using paperclip as a way to easily upload photos.

Basically I want a quick and easy solution to allow users to add a
profile picture.

Anyway - I have followed the tutorial on here:
http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/

I can add a file, but there isnt anywhere to upload it.

I have followed the above tutorial word for word, but i dont get it.
It says i need do nothing with the controller, so I guessed this shuld
work.

Any reason why the upload button is not visible?

Cheers

RubyonRails_newbie wrote:

Hi All,

Someone reccomended using paperclip as a way to easily upload photos.

Basically I want a quick and easy solution to allow users to add a
profile picture.

Anyway - I have followed the tutorial on here:
http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/

I can add a file, but there isnt anywhere to upload it.

I have followed the above tutorial word for word, but i dont get it.

Well, there’s your problem. That page is not meant to be a
word-for-word tutorial; it’s just some simple examples?

It says i need do nothing with the controller, so I guessed this shuld
work.

Any reason why the upload button is not visible?

Did you put a submit button in your form, or did you just copy the
example like a robot? :slight_smile:

Cheers

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

I’ll be a robot then!!! :slight_smile:

Will a simple ‘submit’ button solve my issue then?

On 2 Nov, 18:49, Marnen Laibow-Koser <rails-mailing-l…@andreas-

On Mon, Nov 2, 2009 at 1:25 PM, RubyonRails_newbie
[email protected] wrote:

I’ll be a robot then!!! :slight_smile:

Will a simple ‘submit’ button solve my issue then?

This list is for developers, not robots. Learn HTML and come back next
year.


Greg D.
http://destiney.com/

RubyonRails_newbie wrote:

Thanks for the really positive reply!

I know html, but that’s not exactly the problem when it comes to
ensuring the upload functionality works!!!

It sure sounds like an HTML issue. If not, then what problem are you
having?

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

To be honest I’m new to ruby on rails so am following tutorials as I
go…

I assumed there would have to be an upload function in one of the
controllers to get this to work. As i’m relying on what I find online
I guessed I’d missed something, but not 100% sure…

Ill have to do more digging.

On 2 Nov, 20:24, Marnen Laibow-Koser <rails-mailing-l…@andreas-

Hi… sorry about those unhelpful replies; we were all beginners once
too :frowning:

I wrote a paperclip tutorial that might help; I tried to write out
step by step instructions:
http://patshaughnessy.net/2009/4/30/paperclip-sample-app

I’ve also been working on extending the scaffolding feature Rails
provides to allow people to create scaffolding for specific plugins;
this might be a good way for you to get started:
http://patshaughnessy.net/2009/10/16/paperclip-scaffolding

. - pat

On Nov 2, 3:04 pm, RubyonRails_newbie [email protected]

Thanks for the really positive reply!

I know html, but that’s not exactly the problem when it comes to
ensuring the upload functionality works!!!