Question

Sorry if it is a dumb question, but the issue is quite straight forward. If I do,

$ rails new testproj
$ cd testporj
$ rails plugin install git://github.com/technoweenie/attachment_fu.git

Which should just create a empty proj and install attachment_fu in it. But then, trying to start it up:

$ rails s
=> Booting WEBrick
=> Rails 3.2.2 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed
in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and conf
ig/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails
-3-2-0-rc2-has-been-released. (called from <top (required)> at c:/Users/fgadotti/rails/apps/blobtest/testproj/confi
g/environment.rb:5)
Exiting

The heck? What did I miss? It is rails 3.2.2 on windows I have installed.

thanks,

Était-ce utile?

La solution

plugin install will be deprecated in rails 4.

Gems are now preferred, which are added to Gemfile in your application's root directory and installed with bundle install

attachment_fu is not very well supported with rails 3, I'd use carrierwave instead. You can use Rmagick's to_blob method to store the images in the database.

Autres conseils

like the error suggests there is a new rails version needed:

make sure you add your gemfile to the newest version and run

rake rails:update

this is one thing also the warning suggest you need to move your dependencies out of vendors and put them in your gemfile then run:

bundle install
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top