lib/generators/tabs/tabs_generator.rb
require 'colored'
class TabsGenerator < Rails::Generators::Base
source_root File.expand_path("../templates", __FILE__)
def create_tab_file
template "tabulous.rb", "app/tabs/tabulous.rb"
puts
puts ("Tabulous made some guesses about how you want your tabs configured but " +
"probably got some things wrong. So you need to edit " +
"app/tabs/tabulous.rb to your liking.").magenta
puts
puts "Don't forget to put <%= tabs %> and <%= subtabs %> in your layout(s).".magenta
end
end