Skip to content

Instantly share code, notes, and snippets.

@richardsondx
Created March 30, 2012 00:03
Show Gist options
  • Save richardsondx/2245091 to your computer and use it in GitHub Desktop.
Save richardsondx/2245091 to your computer and use it in GitHub Desktop.
I'm unable to make jquery work locally
<!DOCTYPE html>
<html>
<head>
<title>Gigiki</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
= require jquery
= require jquery_ujs
gem 'jquery-rails'
<div id="textfield">
<%= form_for @micropost do |f| %>
<%= f.text_field :content, :size => 90 , :class => "inputtext", :placeholder => "What's worth sharing?"%> <br/>
</div>
<span>You have <span id="charsLeft"></span> chars left.</span>
<script>$('#inputtext').limit('140','#charsLeft');</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment