Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. class MyBuilder < Merb::Helpers::Form::Builder::Base
  2.  
  3. def my_awesome_method
  4.  
  5. end
  6.  
  7. end
  8.  
  9. class AnotherBuilder < Merb::Helpers::Form::Builder::Base
  10.  
  11. def another_method
  12.  
  13. end
  14.  
  15. end
  16.  
  17. # --- To get it to work, I have to define the following helpers ---
  18.  
  19. def my_awesome_method
  20. current_form_context.my_awesome_method
  21. end
  22.  
  23. def another_method
  24. current_form_context.another_method
  25. end
Add Comment
Please, Sign In to add comment