No commit activity in last 3 years
No release in over 3 years
With sortables pictures Rails plugin you can have pictures with tags, comments and ordering.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Sortable pictures

You can manage & sort pictures

How to use ?

Model


 class Model < ActiveRecord::Base
   sortable_pictures
 end

Controller


 def create
   @model = Model.find params[:id]
   picture = Picture.new params[:picture]
   if picture.save
     sortable_pictures = picture.sortable_pictures.new
     sortable_picture.picturable = @model
     sortable_picture.save
   end
 end

View


 <% @model.pictures.each do |picture| %>
   <%= image_tag(picture.public_filename :thumb) %>
 <% end %>

Configuration file

in RAILS_ROOT + config/sortable_pictures.yml

  
storage: :file_system file_system_path: 'public/images/sortable_pictures' content_type: 'image' thumbnails: :big: '500x500', :normal: '200x200' :small: '100x100' :thumb: '50x50'