public
Rubygem
Fork of ryanb/nifty-generators
Description: A collection of useful Rails generator scripts with HAML views.
Clone URL: git://github.com/bpokosh/nifty-generators.git
restored controller methods
bpokosh (author)
Mon Jul 21 15:22:31 -0700 2008
commit  93d9483ae5c973c1125941145be8bbceff370793
tree    158dfe1ea4a4d69dc0fd9388f2057420d043b9ae
parent  c9b02d25975be7694ad2d780337146e477e0e0b7
...
1
2
3
4
5
6
7
8
9
10
11
12
 
 
 
 
 
13
14
...
1
 
 
 
2
 
 
 
 
 
 
 
3
4
5
6
7
8
9
0
@@ -1,14 +1,9 @@
0
 class <%= plural_class_name %>Controller < ApplicationController
0
- make_resourceful do
0
- actions :all
0
- end
0
   
0
- def current_objects
0
- @current_objects = current_model.paginate(:all,
0
- :order => ‘orders.created_at’,
0
- :page => params[:page],
0
- :conditions => search_conditions,
0
- :joins => :user)
0
- end
0
+ # make_resourceful do
0
+ # actions :all
0
+ # end
0
+
0
+ <%= controller_methods :actions %>
0
   
0
 end

Comments

    No one has commented yet.