Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Feb 16, 2009
  1. @sprsquish

    Add Formtastic::SemanticFormBuilder.collection_label_methods to allow…

    sprsquish authored committed
    … for a list
    
    of possible label text methods. Creating a #to_label method in the model layer
    feels like it crosses a boundary by putting view logic in the model layer. With
    that in mind, having to set :label_method every time it's needed was cumbersome.
    
    Signed-off-by: Justin French <justin@indent.com.au>
  2. @sprsquish

    Add I18n support

    sprsquish authored committed
    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>
  3. @sprsquish

    Add support for nested forms (http://ryandaigle.com/articles/2009/2/1…

    sprsquish authored committed
    …/what-s-new-in-edge-rails-nested-attributes).
    
    Signed-off-by: Justin French <justin@indent.com.au>
  4. @sprsquish

    Remove JustinFrench namespace and add deprecation message for anyone …

    sprsquish authored committed
    …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 authored committed
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Jan 20, 2009
  1. Vanity commit for Mark ;)

    authored
Commits on Jan 14, 2009
  1. @markmansour

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

    markmansour authored committed
    …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 authored committed
    …eld_id">
    
    Signed-off-by: Justin French <justin@indent.com.au>
  3. @markmansour

    fixed typo in example

    markmansour authored committed
    Signed-off-by: Justin French <justin@indent.com.au>
  4. @markmansour

    Extending Formtastic can be done by overriding the semantic_form_buil…

    markmansour authored committed
    …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…

    authored
    …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…

    authored
    …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 authored
    …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…

    authored
    …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

    authored
  2. fix typo in README

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

    authored
    … 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…

    authored
    …ding documentation ion the README, etc
  2. typo fix

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

    authored
    … 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…

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