tinyMCE.activeEditor.getContent()
For example, to send a form and populate a preview div with the response. $('content_form').request({ parameters: { 'preview': "1...
Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...
In Webkit you can use the HTML5-attribute autofocus: = form.text_field :title, :autofocus => 'autofocus' Here is a jQuery fallback for...
Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...
Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...
With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...
We built cucumber_spinner to have a progress bar for Cucumber features, which also outputs failing scenarios as soon as...
To parse XML-documents, I recommend the gem nokogiri. A few hints: xml = Nokogiri::XML(" foo bar ") parses an xml...
See the lemonade descriptions. Unfortunately, the gem has a few problems: it does not work with Sass2...
install apache sudo apt-get install ruby1.8-dev sudo gem install passenger sudo passenger-install-apache2-module follow the instructions
This is about converting Haml to ERB and not the other way round which you probably want! This process can...
.error, .information, .warning { font-weight: bold; } .notice { color: #11bb00; } .error { color: #F53A31; } .information { color: #557; } .warning { color: #d07d2d; }
When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...
sudo gem install zip git clone git://github.com/rtomayko/date-performance.git cd date-performance rake package:build cd dist sudo gem install...
This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...
tmp/* storage/* db/*.sqlite3 db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html
Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]
This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com...
Gem to provide nice looking urls ("/blog/the-greatest-bug-i-never-fixed"). If you don't need anything too special (like i18n for the urls...
Cerberus is a lightweight and easy-to-use Continuous Builder software for Ruby. It could be run periodically from a...
Given a list of acceptable elements and attributes, Sanitize will remove all unacceptable HTML from a string.
I've seen this granularity problem on every project, product or program I've worked on. Often in non-agile...
YSlow analyzes web pages and tells you why they're slow based on the rules for high performance web sites...