In my controller I've added:

  active_scaffold :order do |conf|
    conf.action_links.add 'print', :label => 'Print', :inline =>
false, :page => true
  end

  def print
    @order = Order.find(params[:id])
  end

My routes include:

  resources :orders do
    member do
      get 'print'
    end
    as_routes
  end

I know I'm missing something simple because I keep getting the
following error:

    No route matches {:action=>"print", :controller=>"orders"}

So my link is missing the ID of the record. I'm not sure how I get it
to show up. Any ideas?



-- 
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