I can tell already that this will be dumb question :)
I am trying to install the paperclip plugin. I don''t know why, but it
doesn''t seem to install like other rails plugins using the
script/plugin
install. So instead I downloaded it into the vendor/gems folder (which
I created before) and tried to load the plugin with the following line
in the environment.rb file:
config.load_paths << "#{RAILS_ROOT}/vendor/gems/paperclip"
After restarting the server I get an error that seems to imply that the
plugin was not loaded, as it says that the one of the methods supplied
by the paperclip plugin does not exist.
**
undefined method `has_attached_file'' for #<Class:0x236b404>
**
Am I loading the plugin correctly?
Thanks for the help
The plugin
http://giantrobots.thoughtbot.com/2008/3/18/for-attaching-files-use-paperclip
--
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
-~----------~----~----~----~------~----~------~--~---
maybe ''require ''paperclip''''? -- 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 -~----------~----~----~----~------~----~------~--~---
On 25 Mar 2008, at 04:03, iso .. wrote:> > I can tell already that this will be dumb question :) > > I am trying to install the paperclip plugin. I don''t know why, but it > doesn''t seem to install like other rails plugins using the script/ > plugin > install. So instead I downloaded it into the vendor/gems folder > (which > I created before) and tried to load the plugin with the following line > in the environment.rb file: > > config.load_paths << "#{RAILS_ROOT}/vendor/gems/paperclip" > > After restarting the server I get an error that seems to imply that > the > plugin was not loaded, as it says that the one of the methods supplied > by the paperclip plugin does not exist. > ** > undefined method `has_attached_file'' for #<Class:0x236b404> > ** > > Am I loading the plugin correctly? >Probably not. It''s going to want it''s init.rb file loaded. It looks like you just be able to svn export it into vendor/plugins though. Fred> Thanks for the help > > The plugin > http://giantrobots.thoughtbot.com/2008/3/18/for-attaching-files-use-paperclip > -- > 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 25 Mar 2008, at 04:03, iso .. wrote: > >> >> Am I loading the plugin correctly? >> > Probably not. It''s going to want it''s init.rb file loaded. It looks > like you just be able to svn export it into vendor/plugins though. > > FredIf I would have just put the plugin into the normal plugin dir all would have worked, which it is now. It was the fact that it never installed like a plugin I figured I had to do things differently :) Thanks for the help. -- 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 -~----------~----~----~----~------~----~------~--~---