[rspec-users] RSpec raising routing errors where Rails doesn't?

RSL ___ lists at ruby-forum.com
Tue Aug 19 18:17:35 EDT 2008


Hopefully someone here can help me figure out why the ERB:

  <% form_for(@fund, :url => {:host => PRIVATE_HOST}, :html => {:class
=> 'fund', :multipart => true}) do |f| %>

raises an error in my specs:

  No route matches {:action=>"index"}

but works fine in my app and generates the following, desired HTML:

  <form id="edit_fund_18" class="fund" method="post"
enctype="multipart/form-data"
action="http://domain.com:3000/funds/18/edit">.

Many thanks in advance.

RSL
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list