Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11607 (new defect)

Opened 7 months ago

Using "Renew" or "xxxnew" as class name prevents correct routing

Reported by: toverkamp Assigned to: core
Priority: low Milestone: 2.x
Component: ActiveResource Version: edge
Severity: minor Keywords: routing, new
Cc:

Description

Hi made use of script/generate scaffold Renew fqdn:string period:integer

Everything went fine so far but trying to access the scaffolded resources via browser I received

--snip--
NameError in Renews#index

Showing renews/index.html.erb where line #26 raised:

undefined local variable or method `new_renew_path' for
#<ActionView::Base:0x25fd050>
Extracted source (around line #26):

23:
24: <br />
25:
26: <%= link_to 'New renew', new_renew_path %>
--snap--

The very same error occured if I name my model "Blanew" and "Whatevernew". It does not occur using "BlaNew" for example. I assume that this has something to do with an already filed and _closed_ bug about "non plural words" like "News".