I get weird output when using the following routing setting:
resources :warranty_types do
resources :decisions
end
resource :warranty_review, :only => [] do
resources :decisions
end
I have many warranty_types parameters, but with only one guarantee (thus declaring a single route). Solutions are polymorphically related to both. I have only one decision controller and one _form.html.haml fragment to display the form for making a decision.
This is a code of the form:
= simple_form_for @decision, :url => [@decision_tree_owner, @decision.becomes(Decision)] do |form|
The warranty_type URL looks like this (for a new solution):
/warranty_types/2/decisions
whereas the warranty_review url is as follows:
/admin/warranty_review/decisions.1
I think because the warranty_review identifier does not have a place to go, it is simply added to the end as an extension.
Can someone explain what is happening here and how can I fix it?
, warranty_review @decision_tree_owner : warranty_review, URL-, . , , , warranty_review , , URL.
Rails 3, :)