I am writing a helper that adds an HTML attribute to a link_to tag in rails. So, my thinking is that my helper method should accept any parameters or blocks passed to it, call l
You can use * and & in method calls to turn arrays back into lists of arguments and procs back into blocks. So you can just do this:
*
&
def myhelper(*args, &block) link_to(*args, &block) # your code end