aeonscope-btech_rest 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  = v0.3.0
12
12
 
13
- * Fixed the RDoc so it would generate properly on GitHub.
13
+ * Fixed the RDoc 1so it would generate properly on GitHub.
14
14
  * Fixed the btech_rest.rb requirements so that they are platform agnostic.
15
15
  * Added partial support for Rails 2.3 nested forms. You can at least build nested forms and this gem will handle them properly.
16
16
 
@@ -37,3 +37,7 @@
37
37
  * Deleted the build_resource_form_submit helper since Rails 2.3 makes it so much easier to parse nested resource forms.
38
38
  * Improved the README documentation including examples for how you might write your view code.
39
39
 
40
+ = v0.5.x
41
+
42
+ * Fixed a bug in the disabled_actions class method where unique actions were returning as a null object.
43
+
data/README.rdoc CHANGED
@@ -62,7 +62,7 @@ Example:
62
62
 
63
63
  This will automatically create the seven REST actions (index, show, new, create, edit, update, and destroy) for your controller. The model (i.e. Post) and model instance (i.e. @posts or @post depending on the action) are automatically determined from the controller name and created for you as well which means you can immediately write the following code in your views:
64
64
 
65
- *index.html.erb*
65
+ <b>index.html.erb</b>
66
66
 
67
67
  <h2>Posts</h2>
68
68
  <div>
@@ -81,7 +81,7 @@ This will automatically create the seven REST actions (index, show, new, create,
81
81
  </table>
82
82
  </div>
83
83
 
84
- *show.html.erb*
84
+ <b>show.html.erb</b>
85
85
 
86
86
  <h2>Label</h2>
87
87
  <p><%= @post.label %></p>
@@ -91,25 +91,25 @@ This will automatically create the seven REST actions (index, show, new, create,
91
91
 
92
92
  <p><%= link_to "Back", :back %></p>
93
93
 
94
- *new.html.erb*
94
+ <b>new.html.erb</b>
95
95
 
96
96
  <% form_for @post do |form| %>
97
97
  <%= form.error_messages :header_data => :strong, :header_message => "Error" %>
98
98
 
99
- <div>
99
+ <div>
100
100
  <%= form.label :label %><br/>
101
101
  <%= form.text_field :label %>
102
102
  </div>
103
103
 
104
- <div>
104
+ <div>
105
105
  <%= form.label :content %><br/>
106
106
  <%= form.text_area :content %>
107
107
  </div>
108
108
 
109
- <div><%= show_submit_and_cancel :cancel_options => posts_path %></div>
109
+ <div><%= show_submit_and_cancel :cancel_options => posts_path %></div>
110
110
  <% end %>
111
111
 
112
- *edit.html.erb*
112
+ <b>edit.html.erb</b>
113
113
 
114
114
  Use the same code as shown in the new.html.erb view above. ;-) The Rails form_for helper will automatically determine what action to take as shown in the following code:
115
115
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 5
3
- :patch: 0
4
2
  :major: 0
3
+ :minor: 5
4
+ :patch: 2
data/lib/class_methods.rb CHANGED
@@ -29,7 +29,7 @@ module BTech
29
29
  # Allows one to disable any number of default actions. Accepts the following parameters:
30
30
  # * *actions* - A variable list of REST action symbols you wish to disable. You may use any of the following: index, show, new, create, edit, update, and/or destroy.
31
31
  def disabled_actions *actions
32
- actions.uniq!.each {|action| undef_method action}
32
+ actions.uniq.each {|action| undef_method action}
33
33
  end
34
34
  end
35
35
  end
@@ -3,9 +3,9 @@ module ResourceHelper
3
3
  # hash is expected to have the following keys:
4
4
  # * *id* - The resource ID (a.k.a the model ID).
5
5
  # * *label* - The link label for display, otherwise the name is used instead.
6
- # * *name* - The name of the resource (a.k.a. the controller). Also used as the link lable unless a label has been given.
6
+ # * *name* - The name of the resource (a.k.a. the controller). Also used as the link lable unless a label has been given.
7
7
  # An optional hash of key/values can be supplied, here is what is allowed:
8
- # * *separator* - The breadcrumb separator link, defaults to: '>'
8
+ # * *separator* - The breadcrumb separator link, defaults to: '>'
9
9
  def resource_breadcrumbs resources = [], options = {}
10
10
  # Set defaults.
11
11
  breadcrumbs = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aeonscope-btech_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-18 00:00:00 -07:00
12
+ date: 2009-04-19 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency