Module: SocialWidgets::ViewsHelper
- Defined in:
- lib/social_widgets/views_helper.rb
Instance Method Summary collapse
-
#widget_for(net, opts = {}) ⇒ Object
<%= widget_for(:twitter_search, {:search => “beauty”, :interval => “10000”, :title => “Sample title”, :subject => “subject sample”, :shell_background => “#000000”, :shell_color => “#ffffff”, :tweets_background=> “#2D2AFF” , :tweets_color=> “#ffffff” ,:tweets_links => “#15FF00”, }) %> <%= widget_for(:twitter, {:user => “shapado”, :interval => “10000”, :shell_background => “#000000”, :shell_color => “#ffffff”, :tweets_background=> “#2D2AFF” , :tweets_color=> “#ffffff” ,:tweets_links => “#15FF00”, }) %> <%= widget_for(:flickr, :vertical=>true, :user=> ‘29454428@N08’,:background => “#E5DDFF”) %> <%= widget_for(:github, => “patcito”, :theme => “black”, :title => “Sample Title”, :list_length => 3, :show_all => “Mostrar todos”, :head => “h2”) %> <%= widget_for(:youtube, {:channel => “GeckoMoviesCom”, :vertical => false, :large => false, :height => “260px”, :width => “320px” }) %> <%= widget_for(:linked_in, => “reidhoffman”) %> <%= widget_for(:ohloh, => “dacuad”) %> <%= widget_for(:facebook_stream, {:appid => “foo”, :width => 400, :height => 500, :post_to_friends => true }) %> <%= widget_for(:facebook_like_button, => “foo.bar”) %> <%= widget_for(:twitter_share, => “Check it out!”, :via => “shapado”, :related => “patcito:dacuad”, :layout => “horizontal”, :button_txt => “Tweet it!”) %>.
Instance Method Details
#widget_for(net, opts = {}) ⇒ Object
<%= widget_for(:twitter_search, {:search => “beauty”, :interval => “10000”, :title => “Sample title”, :subject => “subject sample”, :shell_background => “#000000”, :shell_color => “#ffffff”, :tweets_background=> “#2D2AFF” , :tweets_color=> “#ffffff” ,:tweets_links => “#15FF00”, }) %> <%= widget_for(:twitter, {:user => “shapado”, :interval => “10000”, :shell_background => “#000000”, :shell_color => “#ffffff”, :tweets_background=> “#2D2AFF” , :tweets_color=> “#ffffff” ,:tweets_links => “#15FF00”, }) %> <%= widget_for(:flickr, :vertical=>true, :user=> ‘29454428@N08’,:background => “#E5DDFF”) %> <%= widget_for(:github, => “patcito”, :theme => “black”, :title => “Sample Title”, :list_length => 3, :show_all => “Mostrar todos”, :head => “h2”) %> <%= widget_for(:youtube, {:channel => “GeckoMoviesCom”, :vertical => false, :large => false, :height => “260px”, :width => “320px” }) %> <%= widget_for(:linked_in, => “reidhoffman”) %> <%= widget_for(:ohloh, => “dacuad”) %> <%= widget_for(:facebook_stream, {:appid => “foo”, :width => 400, :height => 500, :post_to_friends => true }) %> <%= widget_for(:facebook_like_button, => “foo.bar”) %> <%= widget_for(:twitter_share, => “Check it out!”, :via => “shapado”, :related => “patcito:dacuad”, :layout => “horizontal”, :button_txt => “Tweet it!”) %>
13 14 15 |
# File 'lib/social_widgets/views_helper.rb', line 13 def (net, opts = {}) render :partial => "social_widgets/#{net}", :locals => {:options => opts} end |