Sha256: 2d1029fbef344a7321571fcbdc0615323b04e0ec2327152f00166e9bdf861623
Contents?: true
Size: 654 Bytes
Versions: 3
Compression:
Stored size: 654 Bytes
Contents
Merb::Generators::ResourceControllerGenerator.template :controller_activerecord, :orm => :activerecord do source(File.dirname(__FILE__), "templates/resource_controller/app/controllers/%file_name%.rb") destination("app/controllers", base_path, "#{file_name}.rb") end [:index, :show, :edit, :new].each do |view| Merb::Generators::ResourceControllerGenerator.template "view_#{view}_activerecord".to_sym, :orm => :activerecord, :template_engine => :erb do source(File.dirname(__FILE__), "templates/resource_controller/app/views/%file_name%/#{view}.html.erb") destination("app/views", base_path, "#{file_name}/#{view}.html.erb") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
merb_activerecord-0.9.4 | lib/generators/resource_controller.rb |
merb_activerecord-0.9.5 | lib/generators/resource_controller.rb |
merb_activerecord-0.9.6 | lib/generators/resource_controller.rb |