README.md in formtastic-4.0.0 vs README.md in formtastic-5.0.0

- old
+ new

@@ -14,11 +14,12 @@ * [We have a wiki on GitHub](https://github.com/formtastic/formtastic/wiki) * [StackOverflow can help](https://stackoverflow.com/questions/tagged/formtastic) ## Compatibility -* Formtastic 4 requires Rails 5.2 and Ruby 2.5 minimum +* Formtastic 5 requires Rails 6.0 and Ruby 2.6 minimum +* Formtastic 4 requires Rails 5.2 and Ruby 2.4 minimum * Formtastic 3 requires Rails 3.2.13 minimum * Formtastic 2 requires Rails 3 * Formtastic, much like Rails, is very ActiveRecord-centric. Many are successfully using other ActiveModel-like ORMs and objects (DataMapper, MongoMapper, Mongoid, Authlogic, Devise...) but we're not guaranteeing full compatibility at this stage. Patches are welcome! ## The Story @@ -86,11 +87,11 @@ ## Installation Simply add Formtastic to your Gemfile and bundle it up: ```ruby - gem 'formtastic', '~> 4.0' + gem 'formtastic', '~> 5.0' ``` Run the installation generator: ```shell @@ -567,9 +568,13 @@ ```ruby class FlexibleTextInput < Formtastic::Inputs::StringInput def input_html_options super.merge(:class => "flexible-text-area") + end + + def options + super.merge(hint: 'This is a flexible text area') end end ``` You can also extend existing input behavior by using the input generator: