Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

undefined method `named_scope' #1

Open
sfjuggernaut opened this issue Apr 18, 2009 · 0 comments
Open

undefined method `named_scope' #1

sfjuggernaut opened this issue Apr 18, 2009 · 0 comments

Comments

@sfjuggernaut
Copy link

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

  1. git version 1.6.0
  2. 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

  1. (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.

  1. 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant