0

I have an Order model which has one Cart model. In orders#edit form I want to have a link to the carts#show page of the belonging cart.

The documentation mentions several UI elements which can be rendered, but I don't see things which can render links.

My current setup is:

class OrdersController < ApplicationController
  active_scaffold :order do |conf|
    conf.columns = [:name, :cart]
lulalala
  • 17,572
  • 15
  • 110
  • 169

1 Answers1

0

You can Do this in two ways

get "orders#edit", :to=> "cart#show"

or, just type rake routes in your terminal and you might see something like order_edit and cart_show,then do this

get order_edit_path,:to=> cart_show_path
sp1rs
  • 786
  • 8
  • 23