rails can i pass arguments to controllers new action

  Was wondering is it possible to pass args into the new action on a
controller? I have some javascript that is passing in a date to action
new on a controller and i want to set a field if the date was passed in.


# foos controller
def new
  @foo = Foo.new(:my_date_field => params[:my_date_parameter])

Michael Pavling wrote in post #1045589: