Skip to content
Commits on Feb 16, 2009
  1. @sprsquish

    Add I18n support

    sprsquish committed with Feb 16, 2009
    ActiveRecord object names are taken from ActiveRecord's internal method (ActiveRecord#human_name)
    ActiveRecord object attribute names are taken from ActiveRecord's internal method (ActiveRecord#human_attribute_name(attr))
    There is a list of translatable names that can be found in the README and in lib/locale/en.yml
    Also a new option was added (Formtastic::SemanticFormBuilder.label_str_method) which is called to format default label text
    
    Signed-off-by: Justin French <justin@indent.com.au>
  2. @sprsquish
  3. @sprsquish

    Remove JustinFrench namespace and add deprecation message for anyone …

    sprsquish committed with Feb 16, 2009
    …still using it
    
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Jan 28, 2009
  1. @andypearson

    Updating README to include a note about configuring inline errors

    andypearson committed with Jan 24, 2009
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Jan 20, 2009
  1. Vanity commit for Mark ;)

    committed Jan 20, 2009
Commits on Jan 14, 2009
  1. @markmansour

    created example which doesn't use the JustinFrench::Formtastic namesp…

    markmansour committed with Jan 14, 2009
    …ace and is a bit more abstract
    
    Signed-off-by: Justin French <justin@indent.com.au>
  2. @markmansour

    example provided now adds a <label for="field_id"> and a <span id="fi…

    markmansour committed with Jan 13, 2009
    …eld_id">
    
    Signed-off-by: Justin French <justin@indent.com.au>
  3. @markmansour

    fixed typo in example

    markmansour committed with Jan 13, 2009
    Signed-off-by: Justin French <justin@indent.com.au>
  4. @markmansour

    Extending Formtastic can be done by overriding the semantic_form_buil…

    markmansour committed with Jan 13, 2009
    …der method
    
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Jan 8, 2009
  1. Renamed button_field_set() to just buttons() and added a shorthand ve…

    committed Jan 9, 2009
    …rsion where you pass in a list of buttons, rather than a block:
    
    <% semantic_form_for @post do |form| %>
      ...
      <%= form.buttons :commit %>
    <% end %>
    
    Or you can skip the button list too, and get the default set of buttons (currently just :commit):
    
    <% semantic_form_for @post do |form| %>
      ...
      <%= form.buttons %>
    <% end %>
    
    * button_field_set() is aliased to buttons() for backwards compatibility for now
    * heaps of documentation
    * README examples updated too
    
    See the buttons() documentation for the lowdown, pretty happy with this.
  2. Renamed input_field_set() to just inputs() and added a shorthand vers…

    committed Jan 6, 2009
    …ion where you pass in a list of fields, rather than a block:
    
    <% semantic_form_for @post do |form| %>
      <%= form.inputs :title, :body %>
    <% end %>
    
    Or you can skip the field list too, and get an input for every column in the database table (like scaffolding, great for slapping together a quick form during development):
    
    <% semantic_form_for @post do |form| %>
      <%= form.inputs %>
    <% end %>
    
    * input_field_set() is aliased to inputs() for backwards compatibility for now
    * heaps of documentation
    * README examples updated too
    
    See the inputs() documentation for the lowdown, pretty happy with this.
Commits on Jan 5, 2009
  1. @negonicrac

    add basic file input with specs. This is a very simple addition that …

    negonicrac committed Jan 5, 2009
    …allow the use of :as => :file to get a file input
Commits on Jan 4, 2009
Commits on Dec 9, 2008
  1. It's now possible to customize the options in :select and :radio belo…

    committed Dec 9, 2008
    …ngs_to inputs by passing in a collection (Array) of AR objects through the :collection option.
Commits on Dec 8, 2008
  1. more on the README

    committed Dec 8, 2008
  2. fix typo in README

    committed Dec 8, 2008
Commits on Dec 4, 2008
Commits on Nov 23, 2008
  1. updating the readme a little, especially now that the specs crash for…

    committed Nov 22, 2008
    … rails 2.2, so it's 2.1-only (for now)
Commits on Nov 15, 2008
Commits on Nov 2, 2008
  1. Cleaned up the code and specs around the validation_reflection, inclu…

    committed Nov 2, 2008
    …ding documentation ion the README, etc
  2. typo fix

    committed Nov 2, 2008
Commits on Sep 19, 2008
Commits on Sep 16, 2008
  1. The semantic_form_for (and fields_for, etc) helpers can now be called…

    committed Sep 16, 2008
    … with the older-style generic arguments and with objects that are created inline (User.new) rather than just objects with instance variables (@user), which is apparently useful when using semantic_fields_for inside another field.  Also, a fix to ensure password fields can be guessed based on the name of the field.  Many thanks to Bin Dong for the patches.
Commits on Aug 14, 2008
Commits on Jul 20, 2008
Commits on Jul 6, 2008
  1. added a new boolean_select input, for boolean fields that work better…

    committed Jul 6, 2008
    … with a 'yes/no' select box rather than a checkbox -- might even make this the default for booleans?
Commits on Jul 4, 2008
Something went wrong with that request. Please try again.