bonsaiden.github.com

JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives...

When you click a link or a press a button on a Selenium-controlled browser, the call will return control...

makandra dev

If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

The following Sass will do the trick: button, input[type="reset"], input[type="button"], input[type="submit"], input[type="file...

Our collection of the most useful Cucumber steps, Spreewald, now supports exact matching of form fields and lets you use...

Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:

When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...

Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...

apidock.com

E.g. when you're using a tagging gem, you have seen virtual attributes that get and set a string array...

alfajango.com

There is a problem with AJAX response handling for Rails 3 remote links and forms in Internet Explorer. This problem...

alfajango.com

Thanks to habits engrained by Rails 2’s link_to_remote and remote_form_for, we expect that Rails 3...

In rare cases you might need something like form_for (for using form builder methods on the resulting block element...

When using form_for you can give the form's target URL either as a string or an array:

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...

makandra dev
prototypejs.org

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...

dehora.net

I've seen this granularity problem on every project, product or program I've worked on. Often in non-agile...

blog.smartlogicsolutions.com

I just finished reviewing Rails 2.3 Nested Object Forms. While a very nice and “magical” feature, I’ve got to...