-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always show search for plan files and surveyors
- Loading branch information
Adam Soltys
committed
Feb 26, 2012
1 parent
4a0b5fe
commit dc3cbee
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
class SurveyorsController < ApplicationController | ||
active_scaffold :surveyor do |conf| | ||
conf.list.columns = [:first_name, :last_name, :city] | ||
conf.columns[:first_name].set_link(:edit) | ||
conf.columns[:last_name].set_link(:edit) | ||
active_scaffold :surveyor do |config| | ||
config.list.columns = [:first_name, :last_name, :city] | ||
config.columns[:first_name].set_link(:edit) | ||
config.columns[:last_name].set_link(:edit) | ||
config.list.always_show_search = true | ||
end | ||
end |