Module: Decidim::TwitterSearchHelper

Included in:
ContentBlocks::ParticipatorySpaceHeroCell, ParticipatorySpaceDropdownMetadataCell
Defined in:
app/helpers/decidim/twitter_search_helper.rb

Instance Method Summary collapse

Instance Method Details

#twitter_hashtag_url(hashtag) ⇒ String

Builds the URL for Twitter’s hashtag search.

Parameters:

  • hashtag (String)

    The hashtag to search

Returns:

  • (String)


10
11
12
# File 'app/helpers/decidim/twitter_search_helper.rb', line 10

def twitter_hashtag_url(hashtag)
  format("https://twitter.com/hashtag/%{hashtag}?src=hash", hashtag:)
end