If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...
For some reason you want to define a find condition in array form. And in that condition both column name...
When using virtual attributes, the attached trait can be useful to automatically copy errors from one attribute to another.
Use this if you want to show or hide part of a form if certain options are selected or boxes...
Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...
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...
I've seen this granularity problem on every project, product or program I've worked on. Often in non-agile...
I just finished reviewing Rails 2.3 Nested Object Forms. While a very nice and “magical” feature, I’ve got to...
So, as a result, people using RESTful ideas to talk to browsers have to put the smarts back on the...
Porter is essentially the inverse of X-SendFile. It parses the multipart post in C inside your apache process and...
validate( "email".is("required").andIsAn("email") );
Even though the gradual engagement meme has been around for a while, and everyone just hates signup forms, they just...
cxpartners has an interesting eye tracking study on form design. They distill the results into a few simple guidelines which...
In order to lower friction and the hurdles to pass, users need to be provided with a reason to trust...
A while ago, I came across a unique registration form built by Jeremy Keith for his audio sharing site, Huffduffer...
File upload solution that supports form roundtrips when a validation fails.
Test spies are a form of test double that preserves the normal four-phase unit
Just assign the existing attachment to another record: new_photo = Photo.new new_photo.image = old_photo.image Paperclip will duplicate the file when saving...