I've created a custom action link to clone records using this in my
controller:

  active_scaffold :order do |conf|
    conf.action_links.add 'new', :label => 'Clone', :type => :member
  end

I've also overriden the do_new controller method like this:

  def do_new
    @params_id = params[:id]
    if @params_id.present?
      @record = Order.find(@params_id)
      @record.clone
    else
      @record = Order.create
    end
  end

Everything works great except that the original Create New link at the
top of the form is gone. Any ideas on how I can get it back?

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to