Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map.print 'print/:module/:submodule', :controller => 'print', :action => 'index'
- class PrintController < ActionController::Base
- def index
- m = "#{params[:module]}_#{params[:submodule]}".to_sym
- send(m) if respond_to?(m)
- end
- end
Add Comment
Please, Sign In to add comment