You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...
jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end
Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...
Our awesome collection of rspec helpers (formerly known as "spec_candy.rb") is now available as a gem. It works, it is...
tinyMCE.activeEditor.getContent()
For example, to send a form and populate a preview div with the response. $('content_form').request({ parameters: { 'preview': "1...
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...
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...
This is about converting Haml to ERB and not the other way round which you probably want! This process can...
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]
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...
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...
LaterDude is a small calendar helper with i18n support
Until some future version of HTML gives us new native controls to use in a browser, at Google, we’ve...
Pocket Informant for the iPhone doesn't just simply let you view your daily events but lets you really work...
I just finished reviewing Rails 2.3 Nested Object Forms. While a very nice and “magical” feature, I’ve got to...
Rails’ script/console makes it easy to fetch, view and edit your database records. But can you edit those records as...