stevo / colorbox-rails

Make links open in lightbox a breeze
MIT License
77 stars 58 forks source link

Examples #35

Open justthisguy opened 7 years ago

justthisguy commented 7 years ago

It seems reasonable to guess that using this gem is better than just loading colorbox.js and using through javascript . . . but after a bunch of searching, I have not found any good examples of how one would use it in a Rails way especially usual things like having a partial rendered inside or a hidden div.

It took me a while, two new routes and a partial but I got it working. Still, I cannot believe that this is the way that you intended.

I am happy to build a nice example wiki page for this project and create a pull request. If needed, I will create a small example app. Please post examples here or email them to me and I will get it built.

Thank you!