If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...
This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...
WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...
There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...
To return non-HTML responses (like XLS spreadsheets), we usually use the respond_to do |format| format.xls do # send spreadsheet...
One option is to use partials. Or you can set the @template field to the name of another action:
Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...
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
tinyMCE.activeEditor.getContent()
Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...
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...
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
Given a list of acceptable elements and attributes, Sanitize will remove all unacceptable HTML from a string.
Until some future version of HTML gives us new native controls to use in a browser, at Google, we’ve...
HTML sanitizer by the wonko.com guy.
I believe that the current specification of the element is vague because it avoids the question whether the element is...
So, as a result, people using RESTful ideas to talk to browsers have to put the smarts back on the...
This is a project to make a complete replacement for the default HTML generator for Rdoc, the API documentation-extraction...
Hanna is an RDoc template that scales. It's implemented in Haml, making the sources clean and readable. It's...
SlickMap CSS is a simple stylesheet for displaying finished sitemaps directly from HTML unordered list navigation.