Craig White wrote:
On Thu, 2010-02-25 at 09:45 -0500, Rajinder Yadav wrote:
Hi being relatively new to rails I am trying to start a simple project on using paperclip to upload an image file and create a thumbnail.

However I am not sure how to use the rails plug-in? What I did was install paperclip using gem but not sure if this is the right way to go about it.

require 'paperclip' seems to fail.

I also tried

script/plugin install git://github.com/thoughtbot/paperclip.git

I don't see the plugin downloaded when I look in 'vendos/plugin' folder? I get an error when I run the sample code using the following as an example:
----
use either gem or plugin, not both

if you use the gem, add to config/environment.rb

  config.gem "paperclip"

Great thanks, got it working!

not needed for plugin. You need to remove either the plugin or the gem.

Craig


--
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to