Chris Cera on 6 Feb 2008 08:59:10 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PhillyOnRails] action aliases


Hi everyone, 
   
I have a simple question, but I can't seem to find the answer.
I want to make an 'add' action that is simply an alias for the
'view' action, where all params get passed without enumerating
that list of params.  This might be more of a Ruby question than
Rails.  A template is probably better, but now I'm just curious
how to pass the params over cleanly.

def add
    redirect_to(:action => 'view') # how to pass params?
end

Any help is appreciated.  Thanks, -Chris

-- 
Christopher D. Cera, CTO
http://vuzit.com
P: 215.435.2289
F: 267.295.7369
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk