Tag: plugins
Correct Format Plugin Released
July 4th, 2009, Comments Off
I have released a new Plugin for Rails, called Correct-Format.
Github URL: github.com/mendable/correct-format
This plugin allows you to automatically correct simple user input mistakes
and format user-input without raising an ActiveRecord Error and without
inserting inconsistently formatted data into your database. Using this
plugin will enhance the usability and user-friendlyness of your application
and increase your data integrity.
You can automatically:
Make a [...]
Rails Plugin Tests Not Executed
May 7th, 2009, Comments Off
With Rails 2.3.2, if you create your own plugin using “script/generate plugin {pluginname}”, then enter the vendor/plugins/{pluginname} directory, and run “rake test”, your tests will not run.
The fix for this is to add the following line to your vendor/plugins/{pluginname}/test/test_helper.rb file:
require ‘test/unit’
… so that the top of the file now looks like this:
require ‘rubygems’
require ‘active_support’
require ‘active_support/test_case’
require [...]