Method parameters

Hello,

I want to re-implement some methods when inheriting,
in other words, I just want to change some method arguments.

super method’s arguments are unknown, but we know that there is argument
called ‘options’.

So, I want to change this argument, and call super method with new
parameters.

Here is my solution, which is wrong.

Is there solution to do that?
If yes, then please help me

Oh! I found

Is this corret solution?

On Sun, Jun 17, 2012 at 6:02 AM, Zhomart M. [email protected]
wrote:

Oh! I found

class FormBuilder < ActionView::Helpers::FormBuilder CSS_ERROR_CLASS = 'c - Pastebin.com

Is this corret solution?

It’s not really clear to me what you’re trying to do, but it’s correct
if
it works for you. Does it? Hard to help without knowing what’s wrong.
Are
you getting errors? Is it spitting out the wrong html?

The only obvious thing that I see is the colon in front of
original_#{field}, alias doesn’t take symbols, it takes method names.
*
*

I think my solution is correct.

Thank you for reply