views:

15

answers:

0
<% form_for(@software) do |f| %>

is producing a form tag that looks like this:

<form action="/software.%23%3Csoftware:0x24b2eac%3E" ...

The software model is a bit special, in that I've made it uncountable (softwares didn't sit well with me)

environment.rb:
ActiveSupport::Inflector.inflections do |inflect|
  inflect.uncountable %w( software )
end

but I did name a singular form to get the routes working

map.resources :software, :singular => :software_item

Modifying form_for like so:

<% form_for(@software, :url => software_item_path) do |f| %>

produces the correct output, so perhaps I'm going about the whole uncountable thing the wrong way? Is there generally a better way use models with the same singular and plural word?