ich finde solche helper nicht verkehrt. gerade was das escapen oder
das testen angeht.

swf_objects als rails helper ist z.b. super. außedem testet man
plugins nicht die sollten sich selber testen, so das man nur den weg
zum plugin testen muss. somit kann man tests schreiben die testen obs
zum plugin geht und fertig. leider sind die meisten helper plugins
nicht stark genug aus gearbeitet. so das selber schreiben oft
schnellerer und einfacher ist. aber verkehrt ist sowas nicht.

lg marco



Am 6. Dezember 2010 10:17 schrieb Thomas von Deyen <[email protected]>:
> 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    [email protected]
> 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 <[email protected]>:
>
> Marco:
>
> wenn dann so ;)
>
> fancy_gallery(){}
>
> Thomas von Deyen
>
> mobile  +49 (0)179 492 3992
>
> mail    [email protected]
>
> 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
>
> [email protected]
>
> http://mailman.headflash.com/listinfo/rubyonrails-ug
>
>
>
>
>
> --
> mfg marco
> _______________________________________________
> rubyonrails-ug mailing list
> [email protected]
> http://mailman.headflash.com/listinfo/rubyonrails-ug
>
>
> _______________________________________________
> rubyonrails-ug mailing list
> [email protected]
> http://mailman.headflash.com/listinfo/rubyonrails-ug
>
>



-- 
mfg marco
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an