A few photo galleries for Rails have been created lately, but I wanted a very simple one that could be used for my personal site. Tableau is great for a large photo gallery, but I wanted captions, a description, and a different organization. Also, I was half done with this when Tableau was announced.
So until I’m given a C&D by some company and forced to rename it, I’m calling this one ‘Gullery’.
Gullery is a simple photo gallery built with Ruby on Rails. It works well for a personal portfolio or small photo gallery.
Brilliant work as usual, Geoffrey. Logical and straightforward, and I love how you give your projects that lovely Apple look!
This is the first I’ve heard of mini_magick, I had no idea such a thing existed. I’ve been using rmagick in a shared hosting environment and have been running into memory issues lately, sounds like this is for me. I can’t wait to see how you’ve used it in your code.
Whoa, you skate?! I have been off my board for way too long because I have to get my tonsils out and I am trying to not get sick before surgery. Thanks for reminding me…
Capistrano? I can’t find any info in google- what is it?
Sorry – never mind – annoying that they had to change the name…
A slideshow feature?
Very cool. mini_magick and the gallery source will come in handy for me almost immediately.
The one thing I don’t like about the app, however, is the lack of stateful url for a full-size image. I know I can right-click -> view image cv the url, but still.
Thanks for continuing to pump out interesting stuff to look at! :)
Excellent! Nice execution (as usual). I was actually just about to start building a photo gallery tool myself, and went looking to see if someone had already invented this wheel using Rails.
Is the “Open Source! (soon)” measured in days or weeks? I’d be happy to help extend and contribute back.
I’ll officially open up the source after SXSW, in about a week.
I want to implement a few other things (based on suggestions) and get all the tests to pass.
The daring can take a look here:
svn co http://topfunky.net/svn/gullery
Wow, the whole of rails is in that svn repository. Did you modify something, or you just wanted a stable, unchanging rails while developing your app. If the latter, is this something I should consider doing in my apps?
Yeah, I always freeze Rails so I have a stable version on my shared host. And, I wanted newer features like RJS templates that aren’t in Rails 1.0.
I know there are plugins for that, but I wanted enough 1.1 features that it seemed better to freeze the Rails trunk.
I am curious to know if mini_magick is alrready installed on Dreamhost, or if it is just a simple install..
The web app I am writing now is a photo archive site for 75 years of photos from a particular summer camp, and I needed some code today pretaining to images, and I remembered this app. Thanks for putting the source out there, it will make my life much easier.
I created a little sqlite db, ran rake migrate (worked okay), started the server, and browsed to localhost:3000 and immediately got an error:
Showing app/views/projects/index.mab where line #0 raised:
(eval):2:in `instance_eval’: You have a nil object when you didn’t expect it! The error occured while evaluating nil.description
rhubarb:
Create a user account first by going to ”/account/signup”. Once you have a user account and are logged-in, it should take you to the “New Project” page. Then you should be good to go.
Anyone been able to get this running under Windows? I’ve got it going on my Mac mini, but no go on Windows. Some problem with ImageMagick, I believe.
Whenever an ImageMagick command gets run (ie. on photo add) it dumps with an error such as this:
“ImageMagick command (identify c:/temp/minimagic6088.0 ) failed: Error Given 256”
Rest of app appears to be working—ie. I can signup for an account, create a new project, etc. Any ideas?
I’d like to see some integration with Typo if possible. One of the things that I don’t like about WordPress is how hard it is to create even the simplest of forms.
I am getting the “ImageMagick command (identify c:/temp/minimagic6088.0 ) failed: Error Given 256� error too. I am going to go research if this is a permissions error.
I am getting the “ImageMagick command (identify c:/temp/minimagic6088.0 ) failed: Error Given 256� error too. I am going to go research if this is a permissions error.
Hi,
I can’t even go to the signup page. :( I get the following error:
NameError in Account#signup Showing app/views/layouts/application.mab where line #0 raised:
E:/Temp/myrubyapp/public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:125:in `const_missing’: uninitialized constant RedCloth
Extracted source (around line #0):
1: html do 2: head do 3: title { show_page_title }
RAILS_ROOT: E:/Temp/myrubyapp/public/../config/..
I’m a newbie in ruby stuff.
Can anyone help me out?
Thanks
@Arif: You need the redcloth gem. run
gem install redclothSee: http://whytheluckystiff.net/ruby/redcloth/
Depending on what’s on your machine, you’ll probably need some other gems too.
BrianC,
Thank you very much for your quick and appropriate suggession….Now everything is working fine. Thank you again.
- Arif
Hi,
When I’m trying to add picture by clicking “SAVE” button, I get teh following error.
Any suggession pleaseeeee :(
NoMethodError in Assets#create You have a nil object when you didn’t expect it! The error occured while evaluating nil.> RAILS_ROOT: E:/Temp/myrubyapp/public/../config/..
Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/models/asset.rb:70:in `resize_normal’ #{RAILS_ROOT}/app/models/asset.rb:45:in `file_field=’ #{RAILS_ROOT}/app/controllers/assets_controller.rb:6:in `new’ #{RAILS_ROOT}/app/controllers/assets_controller.rb:6:in `create’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1401:in `send’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1401:in `attributes=’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1400:in `each’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1400:in `attributes=’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1251:in `initialize_without_callbacks’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:236:in `initialize’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:885:in `send’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:885:in `perform_action_without_filters’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:355:in `perform_action_without_benchmark’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue’ E:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:357:in `send’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:357:in `process_without_filters’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:364:in `process_without_session_management_support’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process’ #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch’ E:/Temp/myrubyapp/public/dispatch.cgi:10 #{RAILS_ROOT}/app/models/asset.rb:70:in `resize_normal’ #{RAILS_ROOT}/app/models/asset.rb:45:in `file_field=’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1401:in `send’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1401:in `attributes=’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1400:in `each’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1400:in `attributes=’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1251:in `initialize_without_callbacks’ #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:236:in `initialize’ #{RAILS_ROOT}/app/controllers/assets_controller.rb:6:in `new’ #{RAILS_ROOT}/app/controllers/assets_controller.rb:6:in `create’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:885:in `send’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:885:in `perform_action_without_filters’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:355:in `perform_action_without_benchmark’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue’ E:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:357:in `send’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:357:in `process_without_filters’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:364:in `process_without_session_management_support’ #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process’ #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch’ E:/Temp/myrubyapp/public/dispatch.cgi:10 Request Parameters: {“commit”=>”Save”, “asset”=>{“file_field”=>#, “project_id”=>”1”, “caption”=>”aaa bbb ccc”}}
Thanks, - Arif
Hey! Nice work.. I’ve got some issues posting tall pictures.. it only shows the upper part in the thumbnail..
Very nice!!! Got a copy up and running very, very quickly. Don’t know how actively you’re working on this (if at all, any more), but I added a directory import script / upload feature- happy to share :)
Thanks again- great app!
I don’t have time to work on this project, but I’d love to hand it off to someone else if you have the desire to maintain it.
can you please give a simple photo gallery that i can download
How you get it to run?
I’m a webdev for some time and have read a lot on RoR. So I’m astonished that I can’t get gullery to run – but everybody else can?
What happened until now: (on 2 shared hostings!) - I unpacked the gullery**.tgz - setup the database, created a user - modified the database.yml - tried ‘rake db:migrate’ (after ‘cd gullery’) -> failed! it says: “rake aborted!” “Don’t know how to build task ‘db:migrate’” - (and I didn’t even come to ‘ruby scipt/server’ nor to call it via http://my.server.net/gullery) - (having read it here, I desperately tried ‘gem install redcloth’, btw what’s that?)
(Maybe that’s the penalty for having played around with InstantRails / Locomotive?! But I tried harder and searched seriously since then… promise! ,-)
So I would *really like to know: - how to set gullery up (and other Rails apps. or is gullery different?) - how to specify the environment (dev, prod; I heard it’s an ENV variable. But where do I config it manually?) - how do I start it
I didn’t find a forum so I’m asking here for help ,-) Could anybody provide some precise hints or resources that are detailed enough on the setup? Would be very helpful. Thanks a lot!
I got this error:
ImageMagick command (identify C:/DOCUME1/ADMINI1/LOCALS~1/Temp/minimagic1984-0 ) failed: Error Given 256
please help me how to solve it?
I’m interested in trying out Gullery, but when I run ‘rake migrate’ I get the following error: rake aborted! wrong number of arguments (1 for 0) (See full trace by running task with—trace)
When I use—trace, I get: