Rails How to Generate a Google Drive-like permalink? -


When we share a Google Drive form, this will give our public URL.

How can we apply it in our Rail application? It should be random and not repeated.

Can anyone help me? Thank you.

Update

I mean this is url:

But I want a url You should add a Permalink

/ model /: id , but if you want to use the / model / permalink , simply add new fields, Save something like secureorendum and save it to the model, then create the URL and share it.

You can do something like:

  class SomeModel & lt; ActiveRecord :: Base after_create: gener_permalink Personal DRAF Generated_Permalink self.permalink = SecureRandom.urlsafe_base64 (32) End of End  

Then in some views where your user can find permalink url:

Title> "Model Title", some_model_url (some_model.permalink)%>

The above helpers will create your URL which goes to your some_model controller's show action. You can, of course, take a new action if you wish and add it to your own routes, but I'm just going through a simple way.

In the show action of your controller you will need to find the model by its permalink:

class SomeModelController & lt; ApplicationController def show @some_model = SomeModel.where ("id =: id or permalink =: id", id: params [: id]). First end end

See more in your routes with a little more tweaking, you can shorten the URL for what you have posted in your question:

 routes  file to  http://yourhost.com/1PPVIMrDo61Er9tqYlJRntfNT73jpxtd_YJGGjXOMlAw  

, When no other way is matched, your parametic path will catch the random string and it will be near the controller. Your choice will be:

  # config / routes.rb get "/: permalink", for: "some_model # show", like :: permalink  
< P> Param [: id] instead of parameter [: permalink] will be called in its controller here: get "/: id" You can simplify the code in your controller, but I think it's good to be clear.

Then, correct URL to change just your view:

   </code> </pre> <p> Hope that helps. </p> </div> </html> <br /> 
<script type="text/javascript" src="//ylx-1.com/bnr.php?section=General&pub=435796&format=728x90&ga=g"></script>
<noscript><a href="https://yllix.com/publishers/435796" target="_blank"><img src="//ylx-aff.advertica-cdn.com/pub/728x90.png" style="border:none;margin:0;padding:0;vertical-align:baseline;" /></a></noscript>
  </div>
<div class='post-footer container'>
<div class='post-footer-line post-footer-line-1'>
</div>
<div class='post-footer-line post-footer-line-2'>
</div>
<div class='post-footer-line post-footer-line-3'>
</div>
<div class='post-share-buttons post-share-buttons-bottom'>
<div class='byline post-share-buttons goog-inline-block'>
<div aria-owns='sharing-popup-Blog1-byline-1182133080212216744' class='sharing' data-title='Rails How to Generate a Google Drive-like permalink? -'>
<button aria-controls='sharing-popup-Blog1-byline-1182133080212216744' aria-label='Share' class='sharing-button touch-icon-button' id='sharing-button-Blog1-byline-1182133080212216744' role='button'>
<div class='flat-icon-button ripple'>
<svg class='svg-icon-24'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_share_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
</div>
</button>
<div class='share-buttons-container'>
<ul aria-hidden='true' aria-label='Share' class='share-buttons hidden' id='sharing-popup-Blog1-byline-1182133080212216744' role='menu'>
<li>
<span aria-label='Get link' class='sharing-platform-button sharing-element-link' data-href='https://www.blogger.com/share-post.g?blogID=7468631059340963362&postID=1182133080212216744&target=' data-url='https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html' role='menuitem' tabindex='-1' title='Get link'>
<svg class='svg-icon-24 touch-icon sharing-link'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_link_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Get link</span>
</span>
</li>
<li>
<span aria-label='Share to Facebook' class='sharing-platform-button sharing-element-facebook' data-href='https://www.blogger.com/share-post.g?blogID=7468631059340963362&postID=1182133080212216744&target=facebook' data-url='https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html' role='menuitem' tabindex='-1' title='Share to Facebook'>
<svg class='svg-icon-24 touch-icon sharing-facebook'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_facebook_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Facebook</span>
</span>
</li>
<li>
<span aria-label='Share to X' class='sharing-platform-button sharing-element-twitter' data-href='https://www.blogger.com/share-post.g?blogID=7468631059340963362&postID=1182133080212216744&target=twitter' data-url='https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html' role='menuitem' tabindex='-1' title='Share to X'>
<svg class='svg-icon-24 touch-icon sharing-twitter'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_twitter_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>X</span>
</span>
</li>
<li>
<span aria-label='Share to Pinterest' class='sharing-platform-button sharing-element-pinterest' data-href='https://www.blogger.com/share-post.g?blogID=7468631059340963362&postID=1182133080212216744&target=pinterest' data-url='https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html' role='menuitem' tabindex='-1' title='Share to Pinterest'>
<svg class='svg-icon-24 touch-icon sharing-pinterest'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_pinterest_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Pinterest</span>
</span>
</li>
<li>
<span aria-label='Email' class='sharing-platform-button sharing-element-email' data-href='https://www.blogger.com/share-post.g?blogID=7468631059340963362&postID=1182133080212216744&target=email' data-url='https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html' role='menuitem' tabindex='-1' title='Email'>
<svg class='svg-icon-24 touch-icon sharing-email'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_email_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Email</span>
</span>
</li>
<li aria-hidden='true' class='hidden'>
<span aria-label='Share to other apps' class='sharing-platform-button sharing-element-other' data-url='https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html' role='menuitem' tabindex='-1' title='Share to other apps'>
<svg class='svg-icon-24 touch-icon sharing-sharingOther'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_more_horiz_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Other Apps</span>
</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<section class='comments embed' data-num-comments='0' id='comments'>
<a name='comments'></a>
<h3 class='title'>Comments</h3>
<div id='Blog1_comments-block-wrapper'>
</div>
<div class='footer'>
<div class='comment-form'>
<a name='comment-form'></a>
<h4 id='comment-post-message'>Post a Comment</h4>
<a href='https://www.blogger.com/comment/frame/7468631059340963362?po=1182133080212216744&hl=en-GB&saa=85391&origin=https://sixhiren121.blogspot.com&skin=emporio' id='comment-editor-src'></a>
<iframe allowtransparency='allowtransparency' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='90px' id='comment-editor' name='comment-editor' src='' width='100%'></iframe>
<script src='https://www.blogger.com/static/v1/jsbin/2830521187-comment_from_post_iframe.js' type='text/javascript'></script>
<script type='text/javascript'>
      BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html');
    </script>
</div>
</div>
</section>
</article>
</div>
</div></div>
</main>
<div class='vertical-ad-container no-items section' id='ads' name='Ads'>
</div>
<aside class='sidebar-container container' role='complementary'>
<div class='section' id='sidebar_item' name='Sidebar (Item Page)'><div class='widget PopularPosts' data-version='2' id='PopularPosts1'>
<h3 class='title'>
Popular Posts
</h3>
<div class='widget-content'>
<div role='feed'>
<article class='post' role='article'>
<h3 class='post-title'><a href='https://sixhiren121.blogspot.com/2012/02/javascript-cookie-doesn-work-in-chrome.html'>javascript - Cookie doesn't work in Chrome only -</a></h3>
<div class='item-content'>
<div class='popular-posts-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized'>
    This is a frequency cap cookie for a basic slide toggle, that I have not used in a while works in FF IE does not work in Chrome, Cap is based on calendar day, no 24-hour period. I'm happy to report this problem check my file locally in my browser. Uploaded to the server, cookie is set in chrome Chrome will not forget this fact about    jQuery.noConflict (); JQuery (document) .ready (function () {var PAGEURL = location.href.toLowerCase (); sbFirstSlide = (document.cookie.indexOf ('SBB _' + PAGEURL) == -1); // Check the Cookie Check on the top today on sbTrigger = jQuery ('# slidebartrigger'); slideState = 0; // 0 up =, 1 = downward downTM; upTM; function slideUp () {if (slideState == 1) { If (downTM) clearTimeout (downTM); jQuery ("# ​​slidebar") slideToggle (200); slideState = 0; sbTrigger.removeClass ("closeSlide") one ('click', slideDown);}} function slideDown () {If (upTM) clearTimeout (upTM); jQuery ("# ​​slidebar") slid...
</div>
<a class='snippet-fade r-snippet-fade hidden' href='https://sixhiren121.blogspot.com/2012/02/javascript-cookie-doesn-work-in-chrome.html'></a>
</div>
</div>
</article>
<article class='post' role='article'>
<h3 class='post-title'><a href='https://sixhiren121.blogspot.com/2013/06/c-wcf-service-reference-without.html'>c# - WCF / Service Reference without Configuration File -</a></h3>
<div class='item-content'>
<div class='popular-posts-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized'>
    I have my own generated app without my C # app Depending on the config file, issues are coming up.   The app.config file contains the following:     & Lt; / Startup & gt; & Lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; BasicHttpBinding & gt; & Lt; Binding name = "basic HttpBinding_LanguageService" /> & Lt; / BasicHttpBinding & gt; & Lt; / Binding & gt; & Lt; Customers & gt; & Lt; endpoint address = "http://api.microsofttranslator.com/V2/soap.svc" binding = "basicHttpBinding" bindingConfiguration = "BasicHttpBinding_LanguageService" contract = "Soap.LanguageService" name = "BasicHttpBinding_LanguageService" / & gt; & Lt; / Customer & gt; & Lt; /system.serviceModel> & Lt; / Configuration & gt;    In terms of this, I used the following method:    internally stable Soap.LanguageServiceClient CreateWebServiceInstance () {bind...
</div>
<a class='snippet-fade r-snippet-fade hidden' href='https://sixhiren121.blogspot.com/2013/06/c-wcf-service-reference-without.html'></a>
</div>
</div>
</article>
<article class='post' role='article'>
<h3 class='post-title'><a href='https://sixhiren121.blogspot.com/2013/06/c-binding-usercontrol-property-to.html'>c# - Binding UserControl property to Window property -</a></h3>
<div class='item-content'>
<div class='popular-posts-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized'>
    I am struggling with some compulsive issues. I have a UserControl with a TextBlock text text is bound to a property when using UserControl in the window and setting up the property with some text, everything works as expected, but when I open the window I bind that property in another property, then nothing happens. This is an example that shows this problem:   UserControl xaml:    & lt; UserControl x: class = "TestBinding.UserControl1" xmlns = "http: // schemos Microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml "Xmlns: mc =" http://schemas.openxmlformats.org/markup-compatible / 2006 "xmlns: d =" http://schemas.microsoft.com/expression/blend/2008 "mc: Ignorable =" d " D: design heite = "300" D: DesignWidth = "300" & gt; & Lt; Textbox text = "{some binding some text}" /> UserControl Code: Public Partial Class UserControl1: UserCon...
</div>
<a class='snippet-fade r-snippet-fade hidden' href='https://sixhiren121.blogspot.com/2013/06/c-binding-usercontrol-property-to.html'></a>
</div>
</div>
</article>
</div>
</div>
</div></div>
</aside>
<!-- close sidebar-container -->
</div>
<!-- close centered-bottom -->
</div>
<!-- close centered -->
</div>
<!-- close page_body -->
<footer class='footer section' id='footer' name='Footer'><div class='widget Attribution' data-version='2' id='Attribution1'>
<div class='widget-content'>
<div class='blogger'>
<a href='https://www.blogger.com' rel='nofollow'>
<svg class='svg-icon-24'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_post_blogger_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
Powered by Blogger
</a>
</div>
</div>
</div></footer>
</div>
<script type="text/javascript" src="https://resources.blogblog.com/blogblog/data/res/692461283-vegeclub_compiled.js" async="true"></script>

<script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/387437488-widgets.js"></script>
<script type='text/javascript'>
window['__wavt'] = 'AEUoTZo28vd6_oV0qOnuiQJH1rO7:1781031918680';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d7468631059340963362','//sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html','7468631059340963362');
_WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '7468631059340963362', 'title': 'Six', 'url': 'https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html', 'canonicalUrl': 'http://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html', 'homepageUrl': 'https://sixhiren121.blogspot.com/', 'searchUrl': 'https://sixhiren121.blogspot.com/search', 'canonicalHomepageUrl': 'http://sixhiren121.blogspot.com/', 'blogspotFaviconUrl': 'https://sixhiren121.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en-GB', 'localeUnderscoreDelimited': 'en_gb', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Six - Atom\x22 href\x3d\x22https://sixhiren121.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22Six - RSS\x22 href\x3d\x22https://sixhiren121.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Six - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/7468631059340963362/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Six - Atom\x22 href\x3d\x22https://sixhiren121.blogspot.com/feeds/1182133080212216744/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': true, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/ff2fc60a7f0d8424', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': 'Share to X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en_GB\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'item', 'postId': '1182133080212216744', 'pageName': 'Rails How to Generate a Google Drive-like permalink? -', 'pageTitle': 'Six: Rails How to Generate a Google Drive-like permalink? -'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard', 'ok': 'Ok', 'postLink': 'Post link'}}, {'name': 'template', 'data': {'name': 'custom', 'localizedName': 'Custom', 'isResponsive': true, 'isAlternateRendering': false, 'isCustom': true}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'Rails How to Generate a Google Drive-like permalink? -', 'description': '    When we share a Google Drive form, this will give our public URL.   How can we apply it in our Rail application? It should be random and...', 'url': 'https://sixhiren121.blogspot.com/2013/09/rails-how-to-generate-google-drive-like.html', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 1182133080212216744}}, {'name': 'widgets', 'data': [{'title': 'Six (Header)', 'type': 'Header', 'sectionId': 'header', 'id': 'Header1'}, {'title': 'Search This Blog', 'type': 'BlogSearch', 'sectionId': 'search_top', 'id': 'BlogSearch1'}, {'title': '', 'type': 'FeaturedPost', 'sectionId': 'featured_post', 'id': 'FeaturedPost1', 'postId': '7634718495513952092'}, {'title': '', 'type': 'HTML', 'sectionId': 'page_body', 'id': 'HTML1'}, {'title': 'Blog Posts', 'type': 'Blog', 'sectionId': 'page_body', 'id': 'Blog1', 'posts': [{'id': '1182133080212216744', 'title': 'Rails How to Generate a Google Drive-like permalink? -', 'showInlineAds': true}], 'headerByline': {'regionName': 'header1', 'items': [{'name': 'share', 'label': ''}, {'name': 'timestamp', 'label': ''}]}, 'footerBylines': [{'regionName': 'footer1', 'items': [{'name': 'comments', 'label': 'comments'}, {'name': 'icons', 'label': ''}]}, {'regionName': 'footer2', 'items': [{'name': 'labels', 'label': ''}]}, {'regionName': 'footer3', 'items': [{'name': 'location', 'label': 'Location:'}]}], 'allBylineItems': [{'name': 'share', 'label': ''}, {'name': 'timestamp', 'label': ''}, {'name': 'comments', 'label': 'comments'}, {'name': 'icons', 'label': ''}, {'name': 'labels', 'label': ''}, {'name': 'location', 'label': 'Location:'}]}, {'title': 'About Me', 'type': 'Profile', 'sectionId': 'sidebar_feed', 'id': 'Profile1'}, {'title': '', 'type': 'BlogArchive', 'sectionId': 'sidebar_feed', 'id': 'BlogArchive1'}, {'title': '', 'type': 'ReportAbuse', 'sectionId': 'sidebar_feed', 'id': 'ReportAbuse1'}, {'title': '', 'type': 'PopularPosts', 'sectionId': 'sidebar_item', 'id': 'PopularPosts1', 'posts': [{'title': 'javascript - Cookie doesn\x26#39;t work in Chrome only -', 'id': 2863052762185955800}, {'title': 'c# - WCF / Service Reference without Configuration File -', 'id': 473126814220970790}, {'title': 'c# - Binding UserControl property to Window property -', 'id': 6498638200419091427}]}, {'type': 'Attribution', 'sectionId': 'footer', 'id': 'Attribution1'}]}]);
_WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogSearchView', new _WidgetInfo('BlogSearch1', 'search_top', document.getElementById('BlogSearch1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_FeaturedPostView', new _WidgetInfo('FeaturedPost1', 'featured_post', document.getElementById('FeaturedPost1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'page_body', document.getElementById('HTML1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'page_body', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/1793375781-lbx__en_gb.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/828616780-lightbox_bundle.css'}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_ProfileView', new _WidgetInfo('Profile1', 'sidebar_feed', document.getElementById('Profile1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar_feed', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_ReportAbuseView', new _WidgetInfo('ReportAbuse1', 'sidebar_feed', document.getElementById('ReportAbuse1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_PopularPostsView', new _WidgetInfo('PopularPosts1', 'sidebar_item', document.getElementById('PopularPosts1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer', document.getElementById('Attribution1'), {}, 'displayModeFull'));
</script>
</body>
</html>