Displaying 1 result from an estimated 1 matches for "attachment_url".
2007 Sep 21
1
generating nested resource path
...rces :content_campaigns do |content_campaigns|
content_campaigns.resources :attachments, :member => { :download
=> :get}
end
But, I can''t seem to generate the new path after I create a new
attachment:
(attachments_controller.rb)
format.xml { head :created, :location =>
attachment_url(@attachment) }
I get this trace:
ActionController::RoutingError (attachment_url failed to generate from
{:action=>"show", :content_campaign_id=>"7", :controller=>"attachments"},
expected: {:action=>"show", :controller=>"attachments"...