test/dummy/app/views/mongo_accounts/_form.html.erb in trust-0.8.3 vs test/dummy/app/views/mongo_accounts/_form.html.erb in trust-1.4.2

- old
+ new

@@ -21,10 +21,10 @@ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. %> -<%= form_for(@mongo_account, :url => mongo_client_mongo_accounts_path(@mongo_client)) do |f| %> +<%= form_for(@mongo_account.new_record? ? [@mongo_client,@mongo_account] : @mongo_account) do |f| %> <% if @mongo_account.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@mongo_account.errors.count, "error") %> prohibited this account from being saved:</h2> <ul>