twg/sofa-gallery — pull request #2 by andrzejs (2011-11-16 14:00:43+00:00)
Title: Gallery - carousel

Hi,
When I use {{ cms:helper:render_gallery:gallery-1:carousel }} then have error

-------------------------------------------------
SyntaxError in Cms_content#render_html

Showing /home/a/.rvm/gems/ruby-1.9.2-p290@twgrails31/gems/sofa_gallery-0.0.6/app/views/sofa_gallery/_carousel.html.erb where line #19 raised:

/home/a/.rvm/gems/ruby-1.9.2-p290@twgrails31/gems/sofa_gallery-0.0.6/app/views/sofa_gallery/_carousel.html.erb:19: syntax error, unexpected ',', expecting ')'
...pend= ( photo.image.url(:full), :alt => photo.description, :...

----------------------------------------------------------

I change line 18 and add image_tag(..).

<%= image_tag(photo.image.url(:full), :alt => photo.description, :id => dom_id(photo), :"data-caption" => "##{dom_id(photo)}htmlCaption") %>

Now is probably is ok, but gallery still display without css,javascript from sofa-gallery asset. How it change?

Please check this,
Andrzej