0.01
No commit activity in last 3 years
No release in over 3 years
Upload image use gallery
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies

Development

~> 1.3.4
~> 1.8.4
~> 3.12

Runtime

 Project Readme

Introduction

Usage

Setup

  • gem "ruby_gallery", git: "git@github.com:dangluan/ruby_gallery.git", tag: "v0.2.4" in your gemfile

  • bundle

  • rails g ruby_gallery:install

  • rails g ruby_gallery MODEL

    EX:

rails g ruby_gallery user

  • rake db:migrate

Add upload form for view

<%= show_gallery_images :OBJECT %>
   EX: 
     
     <%= show_gallery_images @user %>

You can reorder images in box (default you can reorderable)

    You can set it to false 
     <%= show_gallery_images @user, {reorder: false} %>

You can disable close link

    <%= show_gallery_images @user, {reorder: false , close: false }