Skip to primary content

Curious Cat Code

Curious Cat Code

Main menu

  • Home
  • About
  • Ruby Resources
  • Security Resources
  • WordPress Resources

Post navigation

← Previous Next →

Generate a New Controller in Rails

Posted on December 20, 2010 by curiouscat

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]

This entry was posted in cut and paste code, Ruby on Rails and tagged cut and paste code, Ruby on Rails by curiouscat. Bookmark the permalink.