Kevin Olbrich

Double Submit Protection


over 5 years ago by Kevin Olbrich on SciWerks.com.
The ease with which a user can inadvertently or deliberately submit a web form multiple times is a persistent problem with web applications and web forms...

Using an auto_complete to ensure uniqueness


over 5 years ago by Kevin Olbrich on SciWerks.com.
A quick and easy way to indicate if a text field is unique by subverting auto_complete fields for your own nefarious purposes....

Another blindingly obvious way to disable a submit button when pressed


over 5 years ago by Kevin Olbrich on SciWerks.com.
Probably the simplest and least problematic way to disable a submit button when pressed. # put this in your ‘application_helper’ file def...

ruby-units 0.3.3


over 5 years ago by Kevin Olbrich on SciWerks.com.
The latest version of the ruby-units gem has just been released. Installation gem install ruby-units or gem update ruby-units Features Significantly improved...

Auto disabling the submit button with KRJS


over 5 years ago by Kevin Olbrich on SciWerks.com.
Benjamin over at RubyOnRailsBlog was recently wondering about how to painlessly disable a submit button to prevent the user from hitting it multiple times...

multiple_auto_complete plugin


over 5 years ago by Kevin Olbrich on SciWerks.com.
Rails’ auto_complete control can be a really handy way to allow users to select an object or string from a list of pre-existing values, however, one...

ruby-units


over 5 years ago by Kevin Olbrich on SciWerks.com.
In scientific (and non-scientific) programming one frequently needs to be able to manipulate units such as ‘10 mm’, ‘6 gal’, or...

Cascading selects vs. auto_complete


over 5 years ago by Kevin Olbrich on SciWerks.com.
How to use auto_complete controls to avoid using cascading selects...

Updating ’select’ controls with AJAX


almost 6 years ago by Kevin Olbrich on SciWerks.com.
In web design there are frequently times when a form needs to be able to have the contents of ’select control B’ depend on the contents of ...

Rails Testing Strategies: Valid and Invalid Data


almost 6 years ago by Kevin Olbrich on SciWerks.com.
Consider this test… def test_create   @item = Item.new   assert_valid @item end Can you tell what the expected result of this testIt...