hi im anas.... im new(means im doing my acadamic project in ror)in ror ......... i have an problem in uploading images(to store in the file system). im using ''fileutils'' lib......... plzzz.. any one help me to store images in file system... plzzz... explain in detail with all(model,view,control) for uploading image using fileutils only..... thanq -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
you can read this: http://teapoci.blogspot.com/2008/04/create-photo-gallery-less-than-10.html regard, Reinhart http://teapoci.blogspot.com -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Visit Indonesia 2008 wrote:> > you can read this: > > http://teapoci.blogspot.com/2008/04/create-photo-gallery-less-than-10.htmlOr you can use AttachmentFu. Class Attachment has_attachment validates_as_attachment end From the doc: Example in controller: def create @attachable_file = AttachmentMetadataModel.new(params[:attachable]) if @attachable_file.save flash[:notice] = ''Attachment was successfully created.'' redirect_to attachable_url(@attachable_file) else render :action => :new end end And you''re done. http://svn.techno-weenie.net/projects/plugins/attachment_fu/README -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Anas Ali wrote:> hi im anas.... > im new(means im doing my acadamic project in ror)in ror ......... > i have an problem in uploading images(to store in the file system). > im using ''fileutils'' lib......... > plzzz.. any one help me to store images in file system... > plzzz... explain in detail with all(model,view,control) for uploading > image using fileutils only..... > thanqAlso Fleximage rails plugin makes this easym as ong as you have RMagick installed. http://github.com/Squeegy/fleximage/wikis The code to get it running is pretty dang minimal. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yeah, I would definitely recommend attachment_fu... Cheers, Sazima On Apr 19, 3:36 pm, Daniel Waite <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Visit Indonesia 2008 wrote: > > > you can read this: > > >http://teapoci.blogspot.com/2008/04/create-photo-gallery-less-than-10... > > Or you can use AttachmentFu. > > Class Attachment > > has_attachment > > validates_as_attachment > > end > > From the doc: > > Example in controller: > def create > @attachable_file = AttachmentMetadataModel.new(params[:attachable]) > if @attachable_file.save > flash[:notice] = ''Attachment was successfully created.'' > redirect_to attachable_url(@attachable_file) > else > render :action => :new > end > end > > And you''re done. > > http://svn.techno-weenie.net/projects/plugins/attachment_fu/README > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---