formtastic 1.2.0.beta2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -201,6 +201,12 @@ If you want to customize the label text, or render some hint text below the fiel
201
201
  <% end %>
202
202
  </pre>
203
203
 
204
+ You can create forms for nested resources:
205
+
206
+ <pre>
207
+ <% semantic_form_for [@author, @post] do |form| %>
208
+ </pre>
209
+
204
210
  Nested forms are also supported (don't forget your models need to be setup correctly with @accepts_nested_attributes_for@). You can do it in the Rails way:
205
211
 
206
212
  <pre>
@@ -642,10 +648,12 @@ Formtastic is maintained by "Justin French":http://github.com/justinfrench, "Mor
642
648
  @git shortlog -n -s --no-merges@
643
649
 
644
650
 
645
- h2. Google Group
651
+ h2. Google Group, Twitter, etc
646
652
 
647
653
  Please join the "Formtastic Google Group":http://groups.google.com.au/group/formtastic, especially if you'd like to talk about a new feature, or report a bug.
648
654
 
655
+ You can also "follow @formtastic on Twitter":http://twitter.com/formtastic for announcements, tutorials and awesome Formtastic links.
656
+
649
657
 
650
658
  h2. Project Info
651
659
 
data/lib/formtastic.rb CHANGED
@@ -15,7 +15,7 @@ module Formtastic #:nodoc:
15
15
 
16
16
  self.default_text_field_size = nil
17
17
  self.default_text_area_height = 20
18
- self.default_text_area_width = 50
18
+ self.default_text_area_width = nil
19
19
  self.all_fields_required_by_default = true
20
20
  self.include_blank_for_select_by_default = true
21
21
  self.required_string = proc { ::Formtastic::Util.html_safe(%{<abbr title="#{::Formtastic::I18n.t(:required)}">*</abbr>}) }
@@ -6,8 +6,8 @@
6
6
  # Set the default text area height when input is a text. Default is 20.
7
7
  # Formtastic::SemanticFormBuilder.default_text_area_height = 5
8
8
 
9
- # Set the default text area width when input is a text. Default is 50.
10
- # Formtastic::SemanticFormBuilder.default_text_area_width = 10
9
+ # Set the default text area width when input is a text. Default is nil.
10
+ # Formtastic::SemanticFormBuilder.default_text_area_width = 50
11
11
 
12
12
  # Should all fields be considered "required" by default?
13
13
  # Rails 2 only, ignored by Rails 3 because it will never fall back to this default.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formtastic
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1848230070
5
- prerelease: true
4
+ hash: 31
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 0
10
- - beta2
11
- version: 1.2.0.beta2
10
+ version: 1.2.0
12
11
  platform: ruby
13
12
  authors:
14
13
  - Justin French