Code Monkey home page Code Monkey logo

hobo_paperclip's Introduction

Codeship Status for Hobo/hobo

Welcome to Hobo

Hobo is an Open Source extension to Ruby on Rails which helps you build full blown web applications incredibly quickly and easily. Available as a Gem or Rails plugin, Hobo provides a simple, clean and elegant development framework which allows for rapid prototyping or production of the most sophisticated web applications.

Main Features

  • Rapid implementation of dynamic Ajax interfaces in your application with no extra programming.
  • Switchable themes. Customise and tweak your application structure and layout to meet any design goals.
  • Powerful mark-up language, DRYML, combines rapid development with ultimate design flexibility. The end of the cookie cutter blues!

RDOC Note

This is also the front page to the Hobo RDOC. RDOC is not the main documentation method for Hobo. See hobocentral for the Hobo documentation.

hobo_paperclip's People

Contributors

bryanlarsen avatar bsleys avatar iox avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hobo_paperclip's Issues

COLUMN_TYPE problem

I am not sure if the fault is in hobo_paperclip or in hobo_fields but trying to
initialize an attachment field using hobo_paperclip raises an exception in HoboFields#can_wrap?

The problem is that can_wrap? expects the constant Paperclip::Attachment::COLUMN_TYPE
to be initialized but it is not.

A workaround is to create the following initializer (but it is kind of a hack):

config/initializers/paperclip.rb

Paperclip::Attachment
class Paperclip::Attachment
COLUMN_TYPE ||= nil
end

Strange error on testing

In a test, i have been running for months, I suddenly get a strange error:

6) Sales::DownloadsController crud actions POST #create moves to photo if document is a photo
     Failure/Error: post :create, download: attributes_for(:download, photo: nil,
     Errno::EISDIR:
       Is a directory @ unlink_internal - /media/Storage/rails/mercator/public
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/paperclip-4.3.0/lib/paperclip/storage/filesystem.rb:64:in `block in flush_deletes'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/paperclip-4.3.0/lib/paperclip/storage/filesystem.rb:61:in `each'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/paperclip-4.3.0/lib/paperclip/storage/filesystem.rb:61:in `flush_deletes'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/paperclip-4.3.0/lib/paperclip/attachment.rb:239:in `save'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/paperclip-4.3.0/lib/paperclip/has_attached_file.rb:92:in `block in add_active_record_callbacks'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:427:in `_run__4433695164598672192__save__callbacks'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/callbacks.rb:302:in `create_or_update'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/persistence.rb:103:in `save'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/validations.rb:51:in `save'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/attribute_methods/dirty.rb:32:in `save'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/transactions.rb:270:in `block (2 levels) in save'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:203:in `block in transaction'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `within_new_transaction'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:203:in `transaction'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/transactions.rb:209:in `transaction'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/transactions.rb:327:in `with_transaction_returning_status'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/transactions.rb:270:in `block in save'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/transactions.rb:285:in `rollback_active_record_state!'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/activerecord-4.0.13/lib/active_record/transactions.rb:269:in `save'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/hobo-2.1.1/lib/hobo/model/permissions.rb:191:in `block in user_update_attributes'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/hobo-2.1.1/lib/hobo/model/permissions.rb:167:in `with_acting_user'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/hobo-2.1.1/lib/hobo/model/permissions.rb:189:in `user_update_attributes'
     # /home/stefan/.rvm/gems/ruby-2.1.5/gems/hobo-2.1.1/lib/hobo/controller/model.rb:549:in `hobo_create'
     # ./app/controllers/sales/downloads_controller.rb:32:in `create'

which has maybe something to do with the fact, that there is a symlink in the path to my hobo app.

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.