I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...
While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...
You've been there: A form cannot be submitted, but you don't see a validation error because the field...
The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...
Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...
Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.
When you render a nested form for a Movie which has_many :actors, you want to render the right number...
XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...
You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...
Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...
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...
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...
E.g. when you're using a tagging gem, you have seen virtual attributes that get and set a string array...
There is a problem with AJAX response handling for Rails 3 remote links and forms in Internet Explorer. This problem...
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: