bbenezech / papermill Goto Github PK
View Code? Open in Web Editor NEWFull-stack asset management for Ruby on Rails. With Paperclip, SWFUpload, jQuery, jgrow, Jcrop and Facebox.
License: MIT License
Full-stack asset management for Ruby on Rails. With Paperclip, SWFUpload, jQuery, jgrow, Jcrop and Facebox.
License: MIT License
The facebox used an id = "footer" which can cause formatting problems when the plugin host app uses the same id in its layout - temporary solution - change the host app footer id so it is unique. more permanent solution provide the facebox footer with a unique id
delete of images not working on the form (with or without Jquery no conflict) as a temporary hack have changed the javascript generated by the papermill asset form to us "J" instead of "$" and is now working
Hi,
in a production server, when I call:
product.pics[0].url("938x340#")
the resizing process is performed every time the page is requested and the gem doesn't use the already cached file in:
/public/system/papermill/000/000/015/938x340#/xxxx.jpg
This implies a waste of cpu resourses and it slow the page rendering.
Do I miss any configuration statement?
Thanks for the kindly reply.
Best Regards,
Mick
Hi,
I am using the latest version of papermill, and I can create attachments with it and display them in my views with no problem, I downloaded the demo app, and read this page and followed along, however I cant seem to be able to use upload_image nor upload_images under edit, the odd thing is that it only gives that problem on my edit action (Im using a partial that I render in both my new and edit action views just like the demo app).
I have double checked my models and controllers againts the demo app and the look alright.
This is the error I get:
/opt/local/lib/ruby/gems/1.8/gems/papermill-1.3.2/lib/papermill/form_builder.rb:46: warning: Object#id will be deprecated; use Object#object_id
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Processing PostsController#show (for 127.0.0.1 at 2009-12-26 21:47:49) [GET]
Parameters: {"action"=>"show", "id"=>"edit", "controller"=>"posts"}
Post Columns (1.7ms) SHOW FIELDS FROM posts
Post Load (0.8ms) SELECT * FROM posts
WHERE (posts
.id
= 0)
ActiveRecord::RecordNotFound (Couldn't find Post with ID=edit):
app/controllers/posts_controller.rb:30:in show' haml (2.2.2) rails/./lib/sass/plugin/rails.rb:19:in
process'
/opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in
run'
/opt/local/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /opt/local/lib/ruby/1.8/webrick/server.rb:162:in
start'
/opt/local/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /opt/local/lib/ruby/1.8/webrick/server.rb:95:in
start'
/opt/local/lib/ruby/1.8/webrick/server.rb:92:in each' /opt/local/lib/ruby/1.8/webrick/server.rb:92:in
start'
/opt/local/lib/ruby/1.8/webrick/server.rb:23:in start' /opt/local/lib/ruby/1.8/webrick/server.rb:82:in
start'
Rendered rescues/_trace (40.8ms)
Rendered rescues/_request_and_response (1.4ms)
Rendering rescues/layout (not_found)
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Processing PostsController#edit (for 127.0.0.1 at 2009-12-26 21:47:58) [GET]
Parameters: {"action"=>"edit", "id"=>"1", "controller"=>"posts"}
User Columns (2.2ms) SHOW FIELDS FROM users
User Load (0.4ms) SELECT * FROM users
WHERE (users
.id
= 1)
roles_users Columns (1.3ms) SHOW FIELDS FROM roles_users
Role Load (2.0ms) SELECT * FROM roles
INNER JOIN roles_users
ON roles
.id = roles_users
.role_id WHERE (roles_users
.user_id = 1 )
CACHE (0.0ms) SELECT * FROM users
WHERE (users
.id
= 1)
Post Columns (1.6ms) SHOW FIELDS FROM posts
Post Load (0.8ms) SELECT * FROM posts
WHERE (posts
.id
= 1)
Rendering template within layouts/application
Rendering posts/edit
ActionView::TemplateError (undefined method `base_class' for Array:Class) on line #18 of app/views/posts/_form.html.erb:
15:
16:
17: <%= f.label :image_gallery %>
18: <%= f.images_upload(:image_gallery) %>
19:
20: <%= f.label :post_image %>
21: <%= f.image_upload(:post_image) %>
papermill (1.3.2) lib/papermill/form_builder.rb:47:in `papermill_upload_tag'
papermill (1.3.2) lib/papermill/form_builder.rb:11:in `images_upload'
app/views/posts/_form.html.erb:18
haml (2.2.2) lib/haml/helpers/action_view_mods.rb:167:in `form_for'
app/views/posts/_form.html.erb:1
haml (2.2.2) lib/haml/helpers/action_view_mods.rb:13:in `render'
app/views/posts/edit.html.erb:3
haml (2.2.2) lib/haml/helpers/action_view_mods.rb:13:in `render'
haml (2.2.2) lib/haml/helpers/action_view_mods.rb:13:in `render'
haml (2.2.2) rails/./lib/sass/plugin/rails.rb:19:in `process'
papermill (1.3.2) lib/papermill/flash_session_cookie_middleware.rb:14:in `call'
/opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/opt/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/opt/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/opt/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendered rescues/_trace (64.1ms)
Rendered rescues/_request_and_response (0.4ms)
Rendering rescues/layout (internal_server_error)
Thanks in advance for taking the time to read this.
This is probably something I have misconfigured, but any idea why I'd be getting this error:
undefined method 'sort_papermill_path' for ImagesController
I have a ticket model which will permit asset uploads (PDF, ZIP, DOC, XLS, etc). I do not have a model for the attachment.
class Ticket < ActiveRecord::Base
papermill :attachments
end
I have the following line in config/initializers/papermill.rb:
:images_only => false,
I get the following growl feedback after the file has transferred:
36341.DOC
File is not one of the allowed file types.
I'm just wondering where I can explicitly permit certain extensions, or content types without having an attachment model?
Hi,
today I updated my gems. "PaperClip" was updated to the 2.3.3 version.
Now, when I start my web-brick, it want not to start. The message is the following:
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1959:in method_missing_without_paginate' C:/Ruby187/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:170:in
method_missing'
C:/Ruby187/lib/ruby/gems/1.8/gems/papermill-2.0.2/lib/papermill/papermill_asset.rb:4
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in require' C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
new_constants_in'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in require' C:/Ruby187/lib/ruby/gems/1.8/gems/papermill-2.0.2/lib/papermill.rb:29 C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in new_constants_in' C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
require'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:208:in load' C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in
load_gems'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in each' C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in
load_gems'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:164:in process' C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in
send'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in run' F:/Michele/Projects/Rails/saporitipici/config/environment.rb:9 C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in new_constants_in' C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
require'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
./script\server:3
C:/Ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in debug_load' C:/Ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in
debug_program'
C:/Ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/bin/rdebug-ide:87
C:/Ruby187/bin/rdebug-ide:19:in load' C:/Ruby187/bin/rdebug-ide:19 Uncaught exception: undefined method
has_attached_file' for #Class:0x9090978
Where is the problem?
Papermill doen't compatible with the new Paperclip gem?
Many thanks for your kindly support,
Cheers,
Mick
Use of papermill tags with formtastic doesnt work as the papermill tags are not being returned from formtastic marked as HTML safe. Based on playing around with the papermill form builder it would appear that this is a formtastic issue.
Hey Sorry, one more exception. This is what I'm getting on upload of a PDF file, images are working fine:
Processing PapermillController#create (for 192.168.0.3 at 2010-02-11 08:56:50) [POST]
Parameters: {"Filename"=>"5206.pdf", "Fileid"=>"SWFUpload_0_0", "action"=>"create", "assetable_type"=>"Customer", "Upload"=>"Submit Query", "assetable_id"=>"16", "gallery"=>"true", "controller"=>"papermill", "assetable_key"=>"invoice", "asset_class"=>"CustomerInvoice", "Filedata"=>#File:/tmp/RackMultipart20100211-31877-e8i1ha-0}
NameError (undefined local variable or method page' for #<PapermillController:0x7f71373f7bb8>): papermill (1.3.6) app/controllers/papermill_controller.rb:44:in
create'
papermill (1.3.6) lib/papermill/flash_session_cookie_middleware.rb:14:in call' passenger (2.2.8) lib/phusion_passenger/rack/request_handler.rb:92:in
process_request'
passenger (2.2.8) lib/phusion_passenger/abstract_request_handler.rb:207:in main_loop' passenger (2.2.8) lib/phusion_passenger/rack/application_spawner.rb:114:in
run'
passenger (2.2.8) lib/phusion_passenger/rack/application_spawner.rb:65:in spawn_application' passenger (2.2.8) lib/phusion_passenger/utils.rb:184:in
safe_fork'
passenger (2.2.8) lib/phusion_passenger/rack/application_spawner.rb:58:in spawn_application' passenger (2.2.8) lib/phusion_passenger/rack/application_spawner.rb:41:in
spawn_application'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:159:in spawn_application' passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:287:in
handle_spawn_application'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in __send__' passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in
main_loop'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
I'm preparing mime-types 2.0 for release, and it has some breaking API changes (not for most uses, but some esoteric features). The most important API change is that mime-types 2.0 no longer supports Ruby 1.8.
If this matters, the gemspec needs to be changed from >= 1.16 to ~> 1.16.
Hi,
I'm having trouble with uploaded files having a -rw------- permission. This causes the resulting thumbnail to not be viewable after upload in the form. Is there a setting somewhere I'm missing to fix this?
Thanks!
Hi Benoit,
Wondering if you have this working with Rails3 yet.
I just tried to add it into a rails3.01 project and got this when I do 'rails g' (looking for the papermill generator)
k@mark-solo:~/rails_apps/rails3/hoven$ rails g
DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from <top (required)> at /home/mark/rails_apps/rails3/hoven/config/application.rb:7)
/home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.1/lib/active_record/base.rb:1016:in method_missing': undefined method
before_post_process' for #Class:0x000000035381f0 (NoMethodError)
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/papermill-2.1.1/lib/papermill/papermill_asset.rb:9:in <class:PapermillAsset>' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/papermill-2.1.1/lib/papermill/papermill_asset.rb:1:in
<top (required)>'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
block in require'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in block in load_dependency' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/papermill-2.1.1/lib/papermill.rb:26:in <top (required)>' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:in
require'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:in block (2 levels) in require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:in
each'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:in block in require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:in
each'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:in require' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler.rb:112:in
require'
from /home/mark/rails_apps/rails3/hoven/config/application.rb:7:in <top (required)>' from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.1/lib/rails/commands.rb:15:in
require'
from /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.1/lib/rails/commands.rb:15:in <top (required)>' from script/rails:6:in
require'
from script/rails:6:in `
Hope all is well.
Mark
I'm getting this exception:
TypeError (can't convert true into String):
papermill (1.3.5) app/controllers/papermill_controller.rb:13:in eval' papermill (1.3.5) app/controllers/papermill_controller.rb:13:in
authorize_create'
papermill (1.3.5) lib/papermill/flash_session_cookie_middleware.rb:14:in call' passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in
process_request'
passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in main_loop' passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in
start_request_handler'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in handle_spawn_application' passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in
safe_fork'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in handle_spawn_application' passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in
send'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in main_loop' passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in
start_synchronously'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in start' passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in
start'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in spawn_rails_application' passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in
lookup_or_add'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in spawn_rails_application' passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in
synchronize'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize' passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in
spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in spawn_application' passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in
handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in __send__' passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in
main_loop'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
This is the options hash being passed in, appears to come from the gallery=>"true" option:
Processing PapermillController#create (for 127.0.0.1 at 2010-02-10 16:22:29) [POST]
Parameters: {"Filename"=>"img136.jpg", "thumbnail_style"=>"75x100>", "Fileid"=>"SWFUpload_0_0", "action"=>"create", "assetable_type"=>"Job", "Upload"=>"Submit Query", "assetable_id"=>"8", "gallery"=>"true", "controller"=>"papermill", "assetable_key"=>"customer_photo", "asset_class"=>"CustomerPhoto", "Filedata"=>#File:/tmp/RackMultipart20100210-8175-1tki9nd-0}
I upgraded from Papermill 1.3.3 to 1.3.5, are there any changes I need to make to the generated database table to make this work?
Hi,
there are some problems on windows. When papermill try to generate the thumbnails, I receive the following message:
Errno::EINVAL in PapermillController#show
Invalid argument - /C:
RAILS_ROOT: C:/Documents and Settings/michele/Documenti/Projects/rails/business
Application Trace | Framework Trace | Full Trace
C:/ruby186/lib/ruby/1.8/fileutils.rb:243:in mkdir' C:/ruby186/lib/ruby/1.8/fileutils.rb:243:in
fu_mkdir'
C:/ruby186/lib/ruby/1.8/fileutils.rb:217:in mkdir_p' C:/ruby186/lib/ruby/1.8/fileutils.rb:215:in
reverse_each'
C:/ruby186/lib/ruby/1.8/fileutils.rb:215:in mkdir_p' C:/ruby186/lib/ruby/1.8/fileutils.rb:201:in
each'
C:/ruby186/lib/ruby/1.8/fileutils.rb:201:in mkdir_p' C:/ruby186/lib/ruby/gems/1.8/gems/papermill-1.2.0/lib/papermill/papermill_asset.rb:115:in
create_thumb_file'
C:/ruby186/lib/ruby/gems/1.8/gems/papermill-1.2.0/app/controllers/papermill_controller.rb:6:in show' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in
send'
C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in perform_action_without_filters' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in
call_filters'
C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in perform_action_without_benchmark' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue'
C:/ruby186/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in ms' C:/ruby186/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:10:in
realtime'
C:/ruby186/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in ms' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue'
C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in perform_action_without_flash' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in
perform_action'
C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in send' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in
process_without_filters'
C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in process' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:391:in
process'
C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in call' C:/ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:437:in
call'
I've done some debug... The path papermill try to manage is:
/C:/Documents and Settings/michele/Documenti/Projects/rails/business/public/system/papermill/000/000/038/original/dm.jpg
where the first "/" is wrong on Windows systems. Could u patch your great gem?
I'm getting:
/Users/Brightspark/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1016:in method_missing': undefined method
before_post_process' for #Class:0x00000100f509f0 (NoMethodError)
Also getting a deprecation warning about using the constant RAILS_ROOT.
Hi,
I'm reporting a bug using papermill on a multiple words model name.
I.e., if you apply papermill on a model named "BuyingLead" the image upload form crash with wrong ids. The bug is due to a composite name "Buying" + "Lead".
PaperMill generate markup with id like
Could u fix the bug?
Thanks
Mick
Hi, Im not a proficient Rails developer, so I don't know (and I searched for it) how to specify index names on rails migrations, so I decided to bring this to your attention, when changing the database backend to mysql and running the migrations I get:
An error has occurred, all later migrations canceled:
Mysql::Error: Identifier name 'index_papermill_assets_on_assetable_type_and_assetable_id_and_assetable_key_and_position' is too long: CREATE INDEX index_papermill_assets_on_assetable_type_and_assetable_id_and_assetable_key_and_position
ON papermill_assets
(assetable_type
, assetable_id
, assetable_key
, position
)
The index name is indeed long:
index_papermill_assets_on_assetable_type_and_assetable_id_and_assetable_key_and_position
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.