title: Dynamically changing text in twitter button (rails+jquery)
body: <p>Ok, so i have <code>index.html.erb</code>. In it I have menu, which I render from <code>_menu.html.erb</code>, and div, in which I render the link from <code>show.html.erb</code> by using show action in my controller. Link is shown by <code>&lt;%=link_to h(@link), h(@link) %&gt;</code> (code from show.html.erb). </p>
  
  <p>Div, in which link is rendered, is often refreshed by <code>$('#div_with_link').load('controller/show');</code>, so @link changes a lot. </p>
  
  <p>The problem is, that I don't know, what should I put in my twitter button text area. I want people to be able to share the current link. I've tried <code>data-text="&lt;%=@video %&gt;"</code>, but than it just showing the link on my webpage, not generated one.</p>
  
  <p>What should I do, to put the generated link in my twitter button? Any suggestions would help, thank you in advance.  </p>