Guest User

Untitled

a guest
Apr 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. map.print 'print/:module/:submodule', :controller => 'print', :action => 'index'
  2.  
  3. class PrintController < ActionController::Base
  4. def index
  5. m = "#{params[:module]}_#{params[:submodule]}".to_sym
  6. send(m) if respond_to?(m)
  7. end
  8. end
Add Comment
Please, Sign In to add comment