kbingman / paperclipped

Please note, this extension is no longer being developed. Please take a look at the radiant-clipped-extension instead. Radiant extension for managing assets and images with the Paperclip plugin.
Other
122 stars 64 forks source link

undefined method `named_scope' #1

Open sfjuggernaut opened 15 years ago

sfjuggernaut commented 15 years ago

When i try to install this extension on a radiant 0.6.9 app, i get the following error:

$ rake ray:extension:install name=paperclipped (in ) git --version

git version 1.6.0

Your download preference has been set to git.

git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped Initialized empty Git repository in /vendor/extensions/paperclipped/.git/ remote: Counting objects: 1716, done. remote: Compressing objects: 100% (978/978), done. remote: Total 1716 (delta 747), reused 1402 (delta 550) Receiving objects: 100% (1716/1716), 517.12 KiB, done. Resolving deltas: 100% (747/747), done. rake development radiant:extensions:paperclipped:migrate (in ) rake aborted! undefined method `named_scope' for Asset(Table doesn't exist):Class

(See full trace by running task with --trace)

The paperclipped extension failed to install properly. Specifically, the failure was caused by the extension's migrate task: Run rake radiant:extensions:paperclipped:migrate --trace for more details.

The extension has been disabled and placed in vendor/extensions/.disabled

$

I don't understand why the creation of the assets table is failing. Also, the only version of Rails that i have is 2.1: $ gem list rails

* LOCAL GEMS *

rails (2.1.0) $

There is also a hack to define named_scope in: vendor/extensions/.disabled/paperclipped/vendor/plugins/will_paginate/lib/will_paginate/named_scope.rb

Any ideas on why this is?

I can get around this (sorta) by commenting out the 'named_scope' in asset.rb and running the migration manually via: $ rake radiant:extensions:paperclipped:migrate