-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
19 lines (14 loc) · 581 Bytes
/
README
File metadata and controls
19 lines (14 loc) · 581 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Organize your controller and place each action/functionality in a separate file.
Especially if your controller actions are too big you can use controller_concerned.
I know, the better way is to refactor your controller code to avoid masses of lines,
but if you haven't enough time for refactoring, try this.
class UsersController < ApplicationController
concerned_with :searching
end
concerned_with will require files at controller/users/
Just add a file to controller/users/ and thats it.
name: searching.rb
class UsersController
def search
end
end