Permalink
Switch branches/tags
Nothing to show
Commits on Mar 7, 2009
  1. Simplyfing boolean_radio_input to use underlying radio_input structure.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
Commits on Mar 5, 2009
  1. Added missing :to_s in sanitized object name.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 5, 2009
  2. LI tag id should take into account nested attributes and indexes.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 4, 2009
  3. Options should also be set when calling labels.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 4, 2009
  4. Small code refactoring.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 4, 2009
  5. Removing unnecessary code from module_eval loop (self.builder= method…

    … was being declared four times!).
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 4, 2009
  6. Updated README with inline_order customization.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  7. Added tests for inline_order customization.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  8. Added @@inline_order to specify in each order input, hints and errors…

    … should be inserted inside LI elements.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
Commits on Mar 3, 2009
  1. Updated README with new configuration options.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  2. Since we are using human_attribute_name, @@label_str_method should ha…

    …s :to_s as default. This is needed because human_attribute_name already returns the string in a user readable and specified format. For example, when we set human_attribute_name to "E-mail", having :titleize as default would returns "E Mail" and "Confirm your password" as "Confirm Your Password".
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  3. @@required_string and @@optional_string should accept procs in order …

    …to deal with I18n (@@required_string is now internationalized).
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  4. Added Required to Formtastic I18n.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  5. Formtastic should not overwrite error_wrapping ActionView method. It …

    …should use field_error_proc (ActionView public API) to deal this.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  6. Fixed specs to deal with default_text_field_size as class attribute.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
  7. DEFAULT_TEXT_FIELD_SIZE should not be a constant, it should be a clas…

    …s variable configurable through a class attribute writer (this is useful if someone is not using Formtastic default CSS).
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 3, 2009
Commits on Mar 2, 2009
  1. fix readme bug

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

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

    * 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
    justinfrench committed Feb 28, 2009
Commits on Feb 28, 2009
  1. use :input_html for select optional html

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 28, 2009
  2. When using #inputs without arguments or a block only content columns …

    …and reflection attrbutes should be used. This will prevent magic columns (created_at, updated_at), primary key columns, and count_cache columns from showing up in the form.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 28, 2009
  3. ensure belongs_to selects are not automatically created as multi-selects

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 28, 2009
  4. add deprecation message when #association_id is used

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 28, 2009
  5. method namechange for clarity

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 28, 2009
  6. update README to reflect association attribute changes

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 28, 2009
  7. trailing whitespace removal

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 27, 2009
  8. add more/better support for association attributes

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 27, 2009
  9. Adjusting select_input and radio_input so they both allow the collect…

    …ion to be passed in as either an Array of Strings (e.g [ 'General', 'Design', 'Development' ]) or a Hash of Strings (e.g { 'General' => 'gen', 'Design' => 'des', 'Development' => 'dev' }).
    
    Signed-off-by: Justin French <justin@indent.com.au>
    andypearson committed with justinfrench Feb 22, 2009
  10. stub reflect_on_all_validations for tests

    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 27, 2009
  11. use #respond_to? to find out if #reflect_on_all_validations exists (T…

    …ODO: figure out how to test this)
    
    Signed-off-by: Justin French <justin@indent.com.au>
    sprsquish committed with justinfrench Feb 17, 2009
Commits on Feb 20, 2009
  1. fix use of #human_attribute_name and #human_name

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

    justinfrench committed Feb 16, 2009