In Rails 2.x
script/generate controller [new controller name] [page you want create]
[code]script/generate controller search index[/code]
In Rails 3.x
[code]rails generate controller search index[/code]
In Rails 2.x
script/generate controller [new controller name] [page you want create]
[code]script/generate controller search index[/code]
In Rails 3.x
[code]rails generate controller search index[/code]