Skip to content
Commits on Mar 16, 2009
  1. @josevalim

    Added more information about inputs :for in README.

    josevalim committed with
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Mar 9, 2009
Commits on Mar 8, 2009
  1. README tweak

    committed
  2. No commit message

    committed
  3. fix README typo

    committed
Commits on Mar 5, 2009
  1. @josevalim

    Updated README with inline_order customization.

    josevalim committed with
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Mar 3, 2009
  1. @josevalim

    Updated README with new configuration options.

    josevalim committed with
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Mar 1, 2009
  1. burned the 'extending Formtastic' from README... will write a simpler…

    committed
    … and more up-to-date version in the wiki soon
  2. Big update and re-organization of the README:

    committed
    * mostly shuffling the content order around
    * re-did the Usage section to show off more of the awesomeness
    * added in a "it's better than..." section
Commits on Feb 28, 2009
  1. @sprsquish

    update README to reflect association attribute changes

    sprsquish committed with
    Signed-off-by: Justin French <justin@indent.com.au>
Commits on Feb 16, 2009
  1. typo fix in README

    committed
  2. big update to the README

    committed
  3. @sprsquish

    Add detection for Paperclip and AttachmentFu attributes.

    sprsquish committed with
    Paperclip attributes are detected by searching for a response to #file?
    AttachmentFu attributes are detected by searching for a response to #public_filename
    
    Signed-off-by: Justin French <justin@indent.com.au>
  4. @sprsquish

    Add Formtastic::SemanticFormBuilder.collection_label_methods to allow…

    sprsquish committed with
    … 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>
  5. @sprsquish

    Add I18n support

    sprsquish committed with
    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>
  6. @sprsquish
  7. @sprsquish

    Remove JustinFrench namespace and add deprecation message for anyone …

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

    committed
Commits on Jan 14, 2009
  1. @markmansour

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

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

    fixed typo in example

    markmansour committed with
    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
    …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
    …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
    …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
    …allow the use of :as => :file to get a file input
Commits on Jan 4, 2009
Something went wrong with that request. Please try again.