Giter Site home page Giter Site logo

rapind / albumdy Goto Github PK

View Code? Open in Web Editor NEW
88.0 88.0 14.0 31.32 MB

Very simple Ruby on Rails photo gallery. This is a total rewrite of the original application, which most branches are based off of.

Home Page: http://albumdy.org

Ruby 26.05% JavaScript 73.95%

albumdy's People

Contributors

rapind 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

albumdy's Issues

Problem on delete photos

Hi,

I tried to use your photo gallery with postgresql database.
When I try to delete some photos I get the following error message:

Processing Admin::PhotosController#destroy (for 127.0.0.1 at 2011-01-21 14:35:10) [DELETE]
Parameters: {"album_id"=>"test", "action"=>"destroy", "_method"=>"delete", "authenticity_token"=>"kuABs2Q1dTTWpnuSYmo+X25fatKYwQ2ctJT/5bVhpDc=", "id"=>"valentino-rossi", "controller"=>"admin/photos"}
Administrator Load (1.6ms) SELECT * FROM "administrators" LIMIT 1
Administrator Load (0.4ms) SELECT * FROM "administrators" WHERE ("administrators"."id" = E'1') LIMIT 1
Album Load (0.6ms) SELECT * FROM "albums" WHERE ("albums"."cached_slug" = E'test') LIMIT 1
Administrator Load (0.2ms) SELECT * FROM "administrators" WHERE ("administrators"."id" = 1)
Photo Load (0.6ms) SELECT * FROM "photos" WHERE ("photos".album_id = 5) AND ("photos"."cached_slug" = E'valentino-rossi') ORDER BY position LIMIT 1
SQL (0.1ms) BEGIN
Photo Update (0.3ms) UPDATE "photos" SET position = (position - 1) WHERE (album_id = 5 AND position > 2)
Slug Load (0.5ms) SELECT * FROM "slugs" WHERE ("slugs".sluggable_id = 57 AND "slugs".sluggable_type = E'Photo') ORDER BY id DESC, id DESC LIMIT 1
Photo Update (0.0ms) PGError: ERROR: null value in column "position" violates not-null constraint
: UPDATE "photos" SET "updated_at" = '2011-01-21 13:35:10.063112', "position" = NULL WHERE "id" = 57
SQL (0.0ms) ROLLBACK

ActiveRecord::StatementInvalid (PGError: ERROR: null value in column "position" violates not-null constraint
: UPDATE "photos" SET "updated_at" = '2011-01-21 13:35:10.063112', "position" = NULL WHERE "id" = 57):
/Library/Ruby/Gems/1.8/gems/acts_as_list-0.1.2/lib/acts_as_list.rb:124:in remove_from_list' /Library/Ruby/Gems/1.8/gems/inherited_resources-0.9.5/lib/inherited_resources/base_helpers.rb:86:indestroy_resource'
/Library/Ruby/Gems/1.8/gems/inherited_resources-0.9.5/lib/inherited_resources/actions.rb:64:in destroy!' app/controllers/admin/photos_controller.rb:27:indestroy'
haml (2.2.19) rails/./lib/sass/plugin/rails.rb:19:in `process'

Any suggestions?

Tanks
Stefano

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.