Rails.application.routes.draw do

#DEPRECATED 
mount_at = <%= engine_module_name %>::Engine.engine_name== "<%= engine_module_name.underscore %>_engine" ? "" : <%= engine_module_name %>::Engine.engine_name

ROUTES from code below: # YourPathToTheControllerFiles = bio/kb/gex # OtherControllerName = slice # # gex /gex(.:format) {:controller=>“bio/kb/gex/populations”, :action=>“index”} # filter_population GET /gex/populations/:id/filter(.:format) {:action=>“filter”, :controller=>“bio/kb/gex/populations”} # populations GET /gex/populations(.:format) {:action=>“index”, :controller=>“bio/kb/gex/populations”} # population GET /gex/populations/:id(.:format) {:action=>“show”, :controller=>“bio/kb/gex/populations”} # samples GET /gex/samples(.:format) {:action=>“index”, :controller=>“bio/kb/gex/samples”} # sample GET /gex/samples/:id(.:format) {:action=>“show”, :controller=>“bio/kb/gex/samples”} # slices GET /gex/slices(.:format) {:action=>“index”, :controller=>“bio/kb/gex/slices”} # slice GET /gex/slices/:id(.:format) {:action=>“show”, :controller=>“bio/kb/gex/slices”} #

# Uncomment to activate the resources ## or you can reconfigure mount_at ## mount <%= engine_module_name %>::Engine=>“your_mount_point”, :as=>‘your_personal_engine_name’ # but is better to redefine the mount point in the Rails application. # yourPathToTheControllerFiles = ‘foopath’ # controllerName = :foos # otherControllerName = :samples ## — # scope mount_at, yourPathToTheControllerFiles do

# resources controllerName do #, :only => [ :index, :show, :new] do # member do # get :example # end # end # resources otherControllerName, :only =>[:index, :show] # end scope

<% puts_template_message [“Remember to require this library in the Gemfile of your Rails application.”,

"Please take a look at #{target_dir}/lib/#{require_name}-engine.rb file for an example of how integrate your engine into a rails application.",
"Thanks!"] %>

end