rails_contrib 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -46,7 +46,3 @@ The method submit_tag outputs a button with span inside:
46
46
  <button name="commit" value="submit">
47
47
  <span>Send</span>
48
48
  </button>
49
-
50
- The method form_for by default uses request.fullpath path and post method:
51
- <form action="fullpath" method="post">
52
- </form>
@@ -4,7 +4,6 @@ module RailsContrib
4
4
 
5
5
  def self.included(base)
6
6
  base.alias_method_chain :submit_tag, :button
7
- base.alias_method_chain :form_for, :defaults
8
7
  end
9
8
 
10
9
  def conditional_tag(tag, condition, options=nil, &block)
@@ -22,11 +21,6 @@ module RailsContrib
22
21
  def submit_tag_with_button(value='Send', options={})
23
22
  button_tag({ :type => 'submit', :name => 'commit' }.update(options)) { content_tag(:span, value) }
24
23
  end
25
-
26
- def form_for_with_defaults(record, options={}, &proc)
27
- options.reverse_merge! :url => request.fullpath, :method => :post
28
- form_for_without_defaults record, options, &proc
29
- end
30
24
 
31
25
  end
32
26
  end
@@ -1,5 +1,5 @@
1
1
  module RailsContrib
2
2
 
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
 
5
5
  end
@@ -1662,3 +1662,26 @@ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
1662
1662
 
1663
1663
  Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-10 19:44:21 -0300
1664
1664
  Served asset /jquery.js - 304 Not Modified (3ms)
1665
+ Connecting to database specified by database.yml
1666
+
1667
+
1668
+ Started GET "/" for 127.0.0.1 at 2013-04-10 19:55:57 -0300
1669
+ Processing by StaticsController#home as HTML
1670
+ Rendered statics/home.html.erb within layouts/application (24.8ms)
1671
+ Completed 200 OK in 54ms (Views: 53.8ms | ActiveRecord: 0.0ms)
1672
+
1673
+
1674
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-10 19:55:58 -0300
1675
+ Served asset /application.css - 304 Not Modified (7ms)
1676
+
1677
+
1678
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-10 19:55:58 -0300
1679
+ Served asset /jquery_ujs.js - 304 Not Modified (3ms)
1680
+
1681
+
1682
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-10 19:55:58 -0300
1683
+ Served asset /jquery.js - 304 Not Modified (3ms)
1684
+
1685
+
1686
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-10 19:55:58 -0300
1687
+ Served asset /application.js - 304 Not Modified (6ms)
@@ -323,3 +323,20 @@ Connecting to database specified by database.yml
323
323
   (0.0ms) rollback transaction
324
324
   (0.0ms) begin transaction
325
325
   (0.0ms) rollback transaction
326
+ Connecting to database specified by database.yml
327
+  (0.2ms) begin transaction
328
+  (0.1ms) rollback transaction
329
+  (0.1ms) begin transaction
330
+  (0.0ms) rollback transaction
331
+  (0.1ms) begin transaction
332
+  (0.0ms) rollback transaction
333
+  (0.0ms) begin transaction
334
+  (0.0ms) rollback transaction
335
+  (0.0ms) begin transaction
336
+  (0.1ms) rollback transaction
337
+  (0.1ms) begin transaction
338
+  (0.0ms) rollback transaction
339
+  (0.0ms) begin transaction
340
+  (0.0ms) rollback transaction
341
+  (0.0ms) begin transaction
342
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-10 00:00:00.000000000 Z
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails