Giter Club home page Giter Club logo

scribd_fu's People

Contributors

damrbaby avatar devender avatar guiocavalcanti avatar jerome avatar joergbattermann avatar jsmpereira avatar krobertson avatar mdarby avatar mickey avatar pj-tommy avatar shadowfiend avatar shwoodard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scribd_fu's Issues

can't start a fresh app with scribd_fu 2.0

ipaper_access_key and ipaper_id columns must be created before setting scribd_fu with config.gem else relative error to missing columns are raised.

this is ok in development mode (first migrate, then edit environment.rb to add gem); it is however difficult to deploy it in production !

Not rendering in Chrome/Windows

Had to finagle the source a bit to get Scribd_fu to work in Windows (I'll try to put this back up soon).

Now am having an issue with rendering the file-view in Chrome. It works fine in internet explorer, so not sure what the issue is.

I'm also a bit of a rails noob, and may be doing something silly.

Document Not Uploading to Scribd on Update

In the update action of my resumes controller I am doing the following:

@resume.update_attributes(params[:resume])

It's my understanding that this should trigger the after_save observer in scribd_fu. Though while paperclip acts accordingly (deletes existing document, uploads new document) scribd_fu is not acting appropriately. The document is not uploaded to scribd_fu.

My first question is: Why is after_save not being called?

Second question: Can support be added to delete the existing converted scribd file and upload the new document when the file_path parameter is not nil?

Rails 3.0.3: scribd_fu.yml not found

Using Rails 3.0.3, the file scribd_fu.yml is not found in config. It seems that neither ::Rails.root.to_s nor RAILS_ROOT seem to contain anything. ConfigPath is therefore set to "/config/scribd_fu.yml".

If I just set ConfigPath to "config/scribd_fu.yml", the plugin works without problems.

Failed to convert error

I'm using paperclip and after I attach the file and it seems to work. The console shows:

Processing AssetsController#create (for 127.0.0.1 at 2010-03-21 17:52:18) [POST]
Parameters: {"commit"=>"Create Asset", "action"=>"create", "authenticity_token"=>"htg56mpBkJcMU1hqzS/L4Gm0pHzL0lM/L4+dYjblnMk=", "controller"=>"assets", "asset"=>{"assetable_type"=>"Resource", "assetable_id"=>"205", "asset"=>#File:/var/folders/Gp/Gp1sGZIQHCGtTTeb3AOUUE+++TI/-Tmp-/RackMultipart20100321-71799-1xyusyu-0}}
User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = '9') LIMIT 1
User Update (0.4ms) UPDATE "users" SET "updated_at" = '2010-03-21 21:52:18', "last_request_at" = '2010-03-21 21:52:18' WHERE "id" = 9
Asset Create (18.0ms) INSERT INTO "assets" ("ipaper_access_key", "created_at", "asset_file_name", "updated_at", "asset_file_size", "ipaper_id", "assetable_type", "asset_content_type", "assetable_id", "description", "asset_updated_at") VALUES(NULL, '2010-03-21 21:52:18', '1_1_Receipt_Dec_2007.pdf', '2010-03-21 21:52:18', 17803, NULL, 'Resource', 'application/pdf', 205, NULL, '2010-03-21 21:52:18')
[paperclip] Saving attachments.
[paperclip] saving assets/44/original.pdf
Asset Update (0.2ms) UPDATE "assets" SET "updated_at" = '2010-03-21 21:52:21', "created_at" = '2010-03-21 21:52:18', "ipaper_id" = 28714976, "asset_file_size" = 17803, "asset_updated_at" = '2010-03-21 21:52:18', "assetable_id" = 205, "asset_file_name" = '1_1_Receipt_Dec_2007.pdf', "ipaper_access_key" = 'MY KEY', "asset_content_type" = 'application/pdf', "assetable_type" = 'Resource' WHERE "id" = 44
[paperclip] Saving attachments.
Rendering assets/create
Rendered units/edit/_asset (1.0ms)
Completed in 2315ms (View: 3, DB: 0) | 200 OK [http://localhost/assets]

However, when I display the ipaper, I get an error that says "failed to convert."

When I go into the console, I get this:

Asset.find(44).conversion_successful?
=> nil

Asset.find(44).scribdable?
=> false

Asset.find(44).upload_to_scribd
=> nil

Why is this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.