I have a credentials_controller and Credential model.  The Credential
model is an STI structure with a number of classes inheriting it.  For
example:

class CredWebsite1 < Credential


When I try to do the index command in the credentials controller, it
gives the error undefined method

---------------
NoMethodError in Credentials#index

Showing credentials/index.html.erb where line #17 raised:

undefined method `cred_website1_path' for #<ActionView::Base:
0xb6f74494>

Extracted source (around line #17):
17:     <td><%= link_to 'Show', credential %></td>
-----------------

I want all of the inherited models to use the path for
credentials_controller.  How do I set that up?


Thanks,
Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to