Skip to content

Conversation

@kristianmandrup
Copy link

Also the railtie now handles and set up for either normal or localized country/language plugins.
The README was also updated to reflect this and include instructions for how to set the 'prioritized' list in each selector (was missing before - had to look into the code to figure this out!).

Cheers!

smathy and others added 30 commits May 18, 2011 16:32
Fixed link to the config file in the readme
When using a radio with a collection of e.g. [1, 0, -1], the ids of the
generated input tags are the same for 1 and -1. By not stripping '-', we
get unique ids in this case.
* Rails 3.1 nested inputs won't work unless the nested attributes collection returns a non-empty collection

* stub Author#persisted? to get another test passing

* stub controller, default_url_options, _routes, _routes.url_helpers, _routes.url_helpers.has_for_..._path, etc

* f.fields_for(:some_association) in Rails 3.1 checks for the some_association= method on the parent model, so we need to stub it

Disabled some failing i18n specs for now.
…and 3.0.7.

* Model_name in Rails 3 can be `author` or `post[author]`. In Rails 3.1 always `author`. Rails 3.1 introduces `builder.parent_builder`, so we use `builder.parent_builder.object` name for the parent (`post`) bit if available, and `f.semantic_fields_for` will pass `:parent_builder` to `f.form_for` as an option to provide similar functionality in Rails 3.0.

* The nested translation tests in for the above code really didn't cover the common use cases, so I re-wrote a lot of them, added extras, etc.

* Rails 3.1 also doesn't seem to instantiate the nested builder as a Formtastic::FormBuilder if the parent form is using `:post` instead of `@post`, so converted the specs to work with real objects.

* The tests for falling back to Rails-style translations didn't make sense to me so I re-wrote them and adding coverage for nesting.

Fixes formtastic#564
Don't strip '-' in choice_html_safe_value
Allow has_many and has_many_through relationships to be validated if included in a form
Boolean fields should not use global requied default. Fixes formtastic#580
* removed formtastic_changes.css
* moved formtastic.css into app/assets/stylesheets/formtastic.css
* changed install generator to only copy formtastic.css in Rails < 3.1
* changed install generator to source the stylesheet template from new location
* added formtastic/engine.rb, which seems to be needed to trigger asset pipeline
* updated documentation

Also modified install instructions in README to include bundling from master.

For Rails 3.1, instead of copying the styles across with a generator, simply add them to your application.css with sprockets:

`*= require formtastic`
Fixes formtastic#584 . Retry if value received from i18n is not a string
…formtastic#547).

Just over a third of the time it used to take.

    # before
    Finished in 178.55 seconds
    1148 examples, 0 failures

    #after
    Finished in 66.23 seconds
    1148 examples, 0 failures
README: Fix examples in Modified & Custom Inputs
Switch to gemspec generated by bundler.
Tom Miller and others added 30 commits October 24, 2011 17:13
Update commit_button documentation
The syntax introduced in 253dc6d, eg.

  concat(builder.fields_for :author, :index => 3 do |author|

was producing these errors:

  syntax error, unexpected keyword_do_block, expecting ')' (SyntaxError)
Address syntax errors when running specs under 1.9.2-p290
Before this change, it wasn't possible to create an input of type 'time'
that didn't default to the current date. This made it impossible to
differentiate between a form submission wherein the user hadn't picked a
date, and one in which they'd picked midnight UTC.
Signed-off-by: Joel Nimety <jnimety@continuity.net>
…er-maxlength-as-bytes

calculate length of integer columns as bytes
…of :input_html option in order to take effect while using f.input :as => :select.
Documentation update: :include_blank option should be passed outside of :
Fixed up the documentation for text_input
Fix for formtastic#740 (Mongoid belongs_to select raises NoMethodError and always returns empty results)
Bring time input behavior in line with time_select when inputs are empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.