<!DOCTYPE html>
<html>
<head>
  <meta charset="utf8">
  <title>中原選課大全</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  <![endif]-->
  <!-- <script type="text/javascript">
    function autoheight(textbox) {
      autosize($(textbox));
    }
    function sendVote(id, vote) {
      $.ajax ({
        type:       'post',
        url:        '/courses/'+id+'/vote',
        data:       {upvote: +vote},
        success: function(msg) {
          alert("Vote Succeed.");
        }
      });
    }
  </script> -->
</head>
<body>
<%= render 'common/github' %>

<%= render 'common/navbar' %>

<div class="wrapper">
  <div class="container">
    <%= display_flash! %>

    <%= yield %>
  </div>
</div>

<a href="#" class="totop"><span>Top</span></a>

<%= render 'common/footer' %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf8">
  <title>中原選課大全</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  <![endif]-->
  <script type="text/javascript">
    function autoheight(textbox) {
      autosize($(textbox));
    }
  </script>
</head>
<body>
<%= render 'common/github' %>

<%= render 'common/navbar' %>

<div class="wrapper">
  <div class="container">
    <%= display_flash! %>

    <%= yield %>
  </div>
</div>

<a href="#" class="totop"><span>Top</span></a>

<%= render 'common/footer' %>

</body>
</html>

Fix js function: autoheight() not defined errors
Fix js function: autoheight() not defined errors
