Permalink
Commits on Mar 20, 2009
  1. Cleaned up some comments

    Simon Chiu committed Mar 20, 2009
  2. Added cancel option on method commit_button

    Simon Chiu committed Mar 20, 2009
Commits on Mar 18, 2009
  1. @josevalim @justinfrench

    Stop objectifying options, since we are relying on FormBuilder that a…

    …lready do that for us.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 17, 2009
  2. @josevalim @justinfrench

    Refactored inputs logic into one single method. Direct consequences of

    this commit:
    
    1. API consistence, since most of the logic is just in one place.
    2. :input_html and :label_html are available to all inputs types.
    3. datetime_input knows better about nested attributes.
    4. input_label has API similar with Rails (method, text, options). The
    only difference is that we can now supply a fourth option, telling
    a label to be rendered as span with class label (this
    is used by radio_input and datetime_input).
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 17, 2009
  3. @josevalim @justinfrench

    Refactored @@inline_order to remove if conditional inside the loop.

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

    Instead of forcing an error and rescueing it, use respond_to?

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 17, 2009
  2. @josevalim @justinfrench

    Added @@file_methods class variable to configure which columns should…

    … be mapped to :file.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 16, 2009
  3. @josevalim @justinfrench

    Refactored select_input and radio_input to have the same collection l…

    …ogic, so we can eliminate boolean_radio_input and boolean_select_input.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 16, 2009
  4. @josevalim @justinfrench

    Using self instead of template allowing autoindexes to be generated w…

    …hen using nested attributes
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 16, 2009
  5. @josevalim @justinfrench

    inputs accept :for_options to pass down options to wrapped semantic_f…

    …ields_for.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 16, 2009
  6. @josevalim @justinfrench

    Make f.inputs return just the fieldset and not the whole template.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 16, 2009
  7. @josevalim @justinfrench

    Allow collections to be a Fixnum or an Array of Arrays.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 16, 2009
  8. @josevalim @justinfrench

    Allow options to be passed down to semantic_fields_for.

    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 16, 2009
  9. @josevalim @justinfrench

    Using alias instead of alias_method (since the first one is cheaper).

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

    Added more information about inputs :for in README.

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

    Fixed comments in boolean_radio_input.

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

    Added support to :for option in inputs. This way we can simplify nest…

    …ed attributes declarations.
    
    Signed-off-by: Justin French <justin@indent.com.au>
    josevalim committed with justinfrench Mar 7, 2009
Commits on Mar 9, 2009
  1. @justinfrench
Commits on Mar 8, 2009
  1. @justinfrench
  2. @justinfrench

    README tweak

    justinfrench committed Mar 8, 2009
  3. @justinfrench

    No commit message

    justinfrench committed Mar 8, 2009
  4. @justinfrench
  5. @justinfrench
  6. @justinfrench

    Moved the contents of init.rb to rails/init.rb to work as a gem plugi…

    …n and a regular plugin.
    justinfrench committed Mar 8, 2009
  7. @justinfrench

    fix README typo

    justinfrench committed Mar 3, 2009
Commits on Mar 7, 2009
  1. @josevalim @justinfrench

    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. @josevalim @justinfrench

    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. @josevalim @justinfrench

    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. @josevalim @justinfrench

    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. @josevalim @justinfrench

    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. @josevalim @justinfrench

    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. @josevalim @justinfrench

    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. @josevalim @justinfrench

    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