Permalink
Switch branches/tags
Nothing to show
Commits on Mar 8, 2009
  1. moved the contents of init.rb to rails/init.rb and required rails/ini…

    …t from init (so that it'll work as a gem plugin)
    justinfrench committed Mar 8, 2009
  2. fix README typo

    justinfrench committed Mar 3, 2009
Commits on Mar 7, 2009
  1. date_or_datetime_input should allow :order as an option or try to ret…

    …rieve it from I18n.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  2. date_or_datetime_select now generates hidden values correctly.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  3. Now generating sanitized html ids for date and datetime selects.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  4. Downcasing values before apply them as classes or ids and added more …

    …tests to radio_input.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  5. Wrapping up last changes to make radio_input work properly.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  6. Radio input uses generate_html_id (which is sanitized) in label's for…

    … attribute to allow it to be used within nested attributes.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  7. Delete :true and :false from options to avoid them from being sent to…

    … inputs tags.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  8. Using Yes and No (uppercased) as I18n defaults since @@label_str_meth…

    …od is not :titleize anymore.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 6, 2009
  9. 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