Trotter Cashion on 6 Feb 2008 09:04:02 -0800

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

Re: [PhillyOnRails] action aliases

  • From: Trotter Cashion <>
  • To: Chris Cera <>,
  • Subject: Re: [PhillyOnRails] action aliases
  • Date: Wed, 6 Feb 2008 12:03:47 -0500
  • Cc:
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=Nwoi/eVlrjFRy4nF9A5ENFOptlyGzfG2sru7AyAPghE=; b=U2Xi/RL6iphTmYNbFoLe+a5acEEocLNtjblIcdW/C42Yjka1hQRJ9YUw1MVID7tB0ZW0HrIxOxWGNfYc3DFecWSk0GRizFfXt4iV+ddaufpdtkf8bSBKKR73E4J7iecfNSSsaj1xA5SO2WleknPoJHiqMZBKBEKfKuIvpiPL6nw=
  • List-archive: <>
  • Reply-to:
  • Sender:


Try this:

def add
  redirect_to(params.merge(:action => "view"))

- Trotter

On Feb 6, 2008, at 11:58 AM, Chris Cera wrote:

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?

Any help is appreciated.  Thanks, -Chris

Christopher D. Cera, CTO
P: 215.435.2289
F: 267.295.7369
To unsubscribe or change your settings, visit:

To unsubscribe or change your settings, visit: