You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This is the one I got working but needed an additional route: <%= link_to "Add something", new_something_path, data: { colorbox: true, inline: true } %>
If someone could example how to make this work, I would be most appreciative: <%= link_to "link name", '#', data: { colorbox: true, href: 'id-of-some-div', inline: true } %>
Examples of Photo and iFrame would be great as well.
Thank you!
The text was updated successfully, but these errors were encountered:
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.
<%= link_to "Add something", new_something_path, data: { colorbox: true, inline: true } %>
<%= link_to "link name", '#', data: { colorbox: true, href: 'id-of-some-div', inline: true } %>
Thank you!
The text was updated successfully, but these errors were encountered: