…ot working. Adding a spec this time. =)
…ring => Symbol), and concat (<<) instead of appending (+). Closes #45.
* Inputs with legends as labels now got class "label" on the legend to make the styling of these much easier. * Inputs with legends as labels now wraps a label instead of a span, and the label is "connected" (with the "for" HTML attribute) to the first of the wrapped inputs - clicking label gives focus to this input. Reasons: Better form accessibility/usability, and is semantically more correct. * Removed: :as_span-option for the Formtastic label helper - not needed anymore. Closes #101.
…alue] as well - for consistency, i.e. avoiding confusion.
… run and pass on 1.8, 1.9.1, and jruby.
…n of the select input, e.g. form.input :rating, :as => :select, :collection => 1..5. Added specs for both ranges, and explicit array values which was lacking. Closes #115.
…ing the only private method to protected for consistency.
…id legend - the options (:name/:title) way works still, and got higher priority. Closes #106.
…Symbols for convention - in a way that works this time.
…s (especially a issue in Ruby 1.9). Closes #109.
…an do that, right?
…he path through the code and which :as options map to which methods inside the code. More to come, but I'm trying to make the code more accessible and readable.
E.g. f.input :author, :group_by => :continent It works a bit different compared to the #grouped_options_select method of Rails. It will collect #continent from each author instead of collecting authors from all continents. Under the cover it will use the Rails implementation however. The Rails implementation combined with ActiveRecord causes an n + 1 query problem. I have tried to minimize this but the issue remains.
…ed with the :selected option, just like :select inputs, resolving issue #112.
…some protest I imagine) issue #102
… on a :select input
… were being rendered in boolean inputs. * input_spec.rb changed to ensure only one label rendered, exposing the bug * boolean_input now inserts the checkbox input into the options hash to pass to the label() * label() now knows what to do with the special key in the options hash, inserting the input into the label at the last minute (after i18n, etc) This will all probably be undone when/if we move the input outside the label (issue #60) :)
…n REST actions whenever possible: "create", "update", or "submit". Also removed a tiny typo from the previous commit (commit_button I18n-features).
* Added support for I18n on buttons (commit_button) using same API as legends/labels/hints - with edited/new specs. * Squashed a bug that caused named models (symbol name of a class instead of an object: :post vs. @post) to not be able to lookup correct values. Specs subset of above. * Some small localization lookup issues justified while on it.
…fields %w[created_at updated_at created_on updated_on lock_version]