Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7437063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:20:25+00:00 2026-05-29T10:20:25+00:00

When can I find a gem for add retweet functionality to my project in

  • 0

When can I find a gem for add “retweet functionality” to my project in ruby on rails 3.1.

e.j. If I have a post and I want the feature, that other people repost my post in his model

Add a example for a user can clone/copy or repost a user’s post:

User 1 have this post:

original = Post.last
 => #<Post _id: 4f2ad6bd1d41c833850000d6, _type: nil, created_at: 2012-02-02 18:32:29 UTC, posted_filename: "240379698830561159_tgw0Xeom_c.png", user_id: BSON::ObjectId('4f2a64511d41c85ae0000002'), board_id: BSON::ObjectId('4f2ab49f1d41c86c2f0000ac'), category_id: BSON::ObjectId('4f1d4dfe1d41c86204000079'), content: "mi ducha"> 

The User 2 want repost original post and he want catch some attributes and add own attributes. e.j.:

attributes to be captured:

attribs = post.attributes.select {|a| %w(created_at post_filename category_id content).include? a }
post_cloned = Post.new attribs 

The User 2 want add his own attributes board_id and user_id and want can update content attribute.

How can the User 2 do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:20:25+00:00Added an answer on May 29, 2026 at 10:20 am

    Don’t wait for gem. Well, I found an article which is telling how to do it using javascript:

    To implement the Retweet button in your application you need to follow the below steps.

    Step 1

    Add this javascript function within the body of your rails rhtml:

    <script type="text/javascript"> 
      tweetmeme_style = "compact"; 
      tweetmeme_url = 'http:'; 
      tweetmeme_source = 'your_mail_id'; 
    </script> 
    

    Step 2

    Finally add the Tweet button where ever you require in your rails application:

    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script> 
    

    Its acts same as Flike,but a single user can Tweet many times.It means the user can likes the page or the article many times.the count will increment Respectively.
    The article will post in your Twitter Account.

    Thats it…you will get the Retweet button in your Rails Application.
    Hope it helps..

    Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is the sqlite3 Ruby gem thread safe? I can't find any documentation to say
I am using the Thumb_Up gem for ruby on rails. https://github.com/brady8/thumbs_up I want users
I can find the definition files at http://www.php.net/~helly/php/ext/spl/... but I want to extend DirectoryIterator
Linux newbie question I guess.. How can I find out where gem installs the
I've read every post I can find about this but nothing is working. I'm
I have a problem that seems very related to that in another post, but
I have a rails app I want to run on heroku to test. I
I have recently been advised that for my current rails app relationships I should
I have an existing table that I'd like to use for a Rails application.
I'm on Rails 3.1.1, Ruby 1.9.2 and the latest gem (pulled from github). It's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.