kristianmandrup / rails-gallery Goto Github PK
View Code? Open in Web Editor NEWPopular javascript photo gallery and carousel components ready for use with Rails 3 and above :)
License: MIT License
Popular javascript photo gallery and carousel components ready for use with Rails 3 and above :)
License: MIT License
Uncaught exception: /usr/lib/ruby/gems/1.8/gems/rails-gallery-0.2.1/lib/rails-gallery/view_helper/galleria.rb:5: syntax error, unexpected ':', expecting kEND
content_tag :a, href: "/assets/#{photo.path}" do
When using the responsive gallery via:
.gallery
= render partial: 'gallery/template/responsive'
= render partial: 'gallery/responsive', locals: { photos: @property.photos }
it loads the file "app/views/gallery/_responsive.html.haml" with contains in the last line:
= gallery_image :responsive, photo, wrap: true
But in the file "lib/rails-gallery/view_helper.rb" the definition of gallery_image only has 2 arguments:
def gallery_image type, photo
meth_name = "#{type}_gallery_image"
validate_gallery_photo! photo
unless respond_to? meth_name
raise ArgumentError, "Gallery #{type} is not yet supported. Please add a View helper module for this gallery using the convention followed by the other galleries..."
end
send(meth_name, photo)
end
If I try to remove the last argument (wrap: true) the images are not wrapped.
How can I fix that?
Because I see in this page "http://tympanus.net/Tutorials/ResponsiveImageGallery/" the gallery works fine.
Thanks
After including the gem in the Gemfile and bundle install
and configuring Galleria, I receive this error for built-in classic theme.
Fatal error: Theme CSS could not load after 20 sec. Please download the latest theme at http://galleria.io/customer/
I'm not sure if that's Galleria's error or the gem's error. So, I'll be creating an issue on both repositories, just to be sure.
I'm on ruby 2.1.0p0
, rails 4.1.0
& rails-gallery 0.3.3
it's happening on both localhost and development. The gallery however does work as expected with no problem whatsoever.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.