Every repository with this icon (
Every repository with this icon (
| Description: | Radiant extension for managing assets and images with the Paperclip plugin edit |
-
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:
Runrake radiant:extensions:paperclipped:migrate --tracefor 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 railsLOCAL 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.rbAny 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:migrateComments
-
problem with uploading ico files as asset
2 comments Created 6 months ago by PlanetMasterHi,
I'm not a coder, so excuse me if I sound a but untechnical.
We have 2 sites running, one with the paperclipped extension checked out at April 2nd, the other one cheched out at May 17th. The last one has a bug (or I do something wrong).
I create 2 assets. favicon.png and favicon.ico, all settings are default, title I put the same as the filename, including extension.
In my layout I have the following in my head part:
<link rel="Shortcut Icon" href=<r:assets:url title="favicon.ico" /> type="image/x-icon" /> <link rel="icon" href=<r:assets:url title="favicon.png" /> type="image/png" />It is resolved in the page source on the website as follows (checkout of May 17th) with the bug:
link type="image/x-icon" href="/images/assets/doc_original.png" rel="Shortcut Icon"/
link type="image/png" href="/assets/5/favicon.png" rel="icon"/It is resolved in the page source on the website as follows (checkout of April 2nd):
link type="image/x-icon" href="/assets/1/favicon.ico" rel="Shortcut Icon"/
link type="image/png" href="/assets/2/favicon.png" rel="icon"/I think something goes wrong in in the assets.rb model, line 90 (BTW our setting is default: original)
Comments
Can you check if the file gets saved on the server?
Also what browser are you using?
PlanetMaster
Wed May 27 05:26:13 -0700 2009
| link
Hi, sorry, we reinstalled radiant with a copy of the April 2nd paperclipped version we still had. I am using firefox 3.0.10.
If really needed I can try to install locally.
Can you reproduce it? Or did not try yet? -
in the 0.7.1 tag this line:
Radiant::Config["assets.storage"].downcase
creates an error if "assest.storage" is not set. I saw that in some commit the 'downsize' is deleted. I think it needs to be deleted here also.Comments
-
if uploading a pdf file the tags "assets:link" and "assets:url" will point to a default image.
if ok for "assets:image" or size="thumbnails", I would expect a link to the file if size="original"need to change "Asset.thumbnails" or tag's code to use "asset.url" instead of "thumbnails"
see: app/models/asset.rb:85Paolo
Comments
-
You should add a note to the readme that if you're using S3 for storage then you require the right_aws gem!
Comments
-
merge my master branch for i18n support and other cool stuff ;)
0 comments Created about 1 month ago by antonohttp://github.com/antono/paperclipped/commits/i18n
- graphical buttons replaced with css variant
- small fixes in CSS to fit Radian 0.9 skin and translation messages, new css buttons
- added English and Russian translations
- whitespace genocide
- implemented Asset.CenterElement for bucket box centering
Comments
-
On line 55 of paperclipped/app/views/admin/assets/_assets_container.html.haml replace
- form_tag dowith
- form_remote_tag :update => 'search-results', :url => admin_assets_path(:asset_page => @page), :method => :get doComments
-
Paperclipped is looking for dragdrop.js in the wrong place
4 comments Created about 1 month ago by j2flyNot sure how it's being loaded, but paperclipped wants it at /javascripts/dragdrop.js but it is now in /javascripts/admin/dragdrop.js. For now I copied the one from the admin directory to the root of javascripts so that paperclipped will work, but I don't want to load the file twice forever.
Like I said, I'm not sure how or why paperclipped is looking where it is looking or I'd fix it and send a pull request.
Thanks,
-JonComments
This is a 0.9 issue. It was moved. Paperclipped does not support 0.9 yet.
Yea, sorry... I know it's a 0.9 issue. I have paperclipped working on 0.8.1 without issue. I was just throwing this out there for reference when you do to go update it.
Thanks,
-onJohn completely changed the javascripts in 0.9.0 and moved all the core scripts. Dragdrop is not actually loaded by radiant, which is why paperclipped needs to load it. I have a version running on 0.9.0, but I just started it yesterday. I will have a branch online shortly.
-
If you have an asset_updated_at column on your asset table this causes paperclip to append a timestamp on the url it generates. This breaks Asset#dimensions since it uses the thumbnail method to generate the path to the file. Instead you could use something like this
file = new_record? ? asset.instance_variable_get("@queued_for_write")[:original] : asset.path(size.to_sym) geometry = Paperclip::Geometry.from_file(file) [geometry.width.to_i, geometry.height.to_i]Comments











