Displaying 1 result from an estimated 1 matches for "physician_search".
2006 Jul 22
1
Input on application design
...code in a situation like this.
def physician # action for physician search
search
end
def dentist # action for dentist search
search
end
def search
## shared code
if params[:address] or params[:page]
if params[:action] == ''physician''
@search_pages,@search = physician_search
elsif params[:action] == ''dentist''
@search_pages,@search = dentist_search
end
end
## more shared code
## More action specific code
## more shared code
## repeat a couple more times
end