I get the following error:
undefined method `campaign_fax_path' for #<ActionView::Base:0xb6515200>
I have routes defined as follows:
map.resources campaigns, :has_many => :faxes
The error occurs here:
NoMethodError in Faxes#edit
Showing app/views/faxes/_form.html.erb where line #1 raised
I use a pretty basic form:
<% form_for [@campaign, @fax] do |f| %>
2 <%= f.error_messages %>
3 <p>
4 Campaign:
5 <%= link_to @campaign.name, campaign_path(@campaign) %>
6 </p>
When I do a rake routes | grep "campaign_fax*" I get the following:
campaign_faxes GET /campaigns/:campaign_id/faxes(.:format) {:action=>"index", :controller=>"faxes"}
new_campaign_fax GET /campaigns/:campaign_id/faxes/new(.:format) {:action=>"new", :controller=>"faxes"}