Sorry, mein Fehler.

Ich dachte Du meinst dass man die fancyboy mit Block aufrufen soll,
dann wäre das fancy_gallery(){} so richtig zu klammern gewesen.

Aber wenn das ein Hash als Paramter sein soll, hast Du natürlich Recht!

Trotzdem noch mal mal Aufruf:

Kein Plugin! Selber implementenieren:

In den Head des layouts:

        <head>
                <%= stylesheet_link_tag 'fancybox-1.3.4', :media => 'screen' %>
                <%= javascript_include_tag ["jquery-1.4.3.min", 
"jquery.mousewheel-3.0.4.pack", "jquery.easing-1.3.pack", 
"jquery.fancybox-1.3.4.pack"], :cache => 'fancybox' %>
        </head>

Einem Bild dann einfach nur die Klasse geben:

<%= image_tag('bild.jpg', :class => 'zoomable')

Dann in den body:

<script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
                $("a.zoomable").fancybox({'titlePosition' : 'inside'});
        });
</script>

Fertig. Bei Bedarf noch gerne anpassen.

Dafür ein Plugin? Ich weiß nicht ;)



Thomas von Deyen

mobile  +49 (0)179 492 3992
mail    tho...@vondeyen.com
web     thomas.vondeyen.com
twitter twitter.com/tvdeyen

Save the environment:

Before printing this email, 
please assess if it is really 
needed!

Am 06.12.2010 um 10:10 schrieb Marco Scholl:

> NEIN!
> 
> so: fancy_gallery({})
> 
> weil {} ein! Hashparameter sein soll und kein Blockargument!
> 
> 
> 
> 
> 2010/12/6 Thomas von Deyen <tho...@vondeyen.com>:
>> Marco:
>> wenn dann so ;)
>> fancy_gallery(){}
>> 
>> Thomas von Deyen
>> 
>> mobile  +49 (0)179 492 3992
>> mail    tho...@vondeyen.com
>> web     thomas.vondeyen.com
>> twitter twitter.com/tvdeyen
>> Save the environment:
>> Before printing this email,
>> please assess if it is really
>> needed!
>> Am 06.12.2010 um 10:07 schrieb Marco Scholl:
>> 
>> fancy_gallery({})
>> 
>> _______________________________________________
>> rubyonrails-ug mailing list
>> rubyonrails-ug@headflash.com
>> http://mailman.headflash.com/listinfo/rubyonrails-ug
>> 
>> 
> 
> 
> 
> -- 
> mfg marco
> _______________________________________________
> rubyonrails-ug mailing list
> rubyonrails-ug@headflash.com
> http://mailman.headflash.com/listinfo/rubyonrails-ug

_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an