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? :)> > CheersBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
I''ll be a robot then!!! :-) Will a simple ''submit'' button solve my issue then? On 2 Nov, 18:49, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote:> 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? :) > > > > > Cheers > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.
On Mon, Nov 2, 2009 at 1:25 PM, RubyonRails_newbie <craigwesty79-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > I''ll be a robot then!!! :-) > > Will a simple ''submit'' button solve my issue then?This list is for developers, not robots. Learn HTML and come back next year. -- Greg Donald http://destiney.com/
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!!! On 2 Nov, 19:34, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Nov 2, 2009 at 1:25 PM, RubyonRails_newbie > > <craigwest...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > I''ll be a robot then!!! :-) > > > Will a simple ''submit'' button solve my issue then? > > This list is for developers, not robots. Learn HTML and come back next year. > > -- > Greg Donaldhttp://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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
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- s.net> wrote:> 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-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.
Hi... sorry about those unhelpful replies; we were all beginners once too :( 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 <craigwest...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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!!! > > On 2 Nov, 19:34, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > On Mon, Nov 2, 2009 at 1:25 PM, RubyonRails_newbie > > > <craigwest...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > I''ll be a robot then!!! :-) > > > > Will a simple ''submit'' button solve my issue then? > > > This list is for developers, not robots. Learn HTML and come back next year. > > > -- > > Greg Donaldhttp://destiney.com/
Maybe Matching Threads
- nil object - can anyone help?
- help needed - undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
- no such file to load -- ferret
- ferret search in production
- Changing the :path and :url options of has_attached_file in paperclip