rvalyi/ooor — Issue #76: form_for and object from openerp
Author: matrixise
Created: 2011-11-01 21:52:46+00:00
State: open

Hi all,

I have a problem with a small controller and view. I get an error with the ActionView::Template object.

```ruby

class IssuesController < ApplicationController
def new
@issue = ProjectIssue.new
end
end
```
Here is the HAML file.

I have to specify the :action in the :url keyword of semantic_form_for, because the project_issue_path doesn't exist, but the real function is issue_path.

```haml

= semantic_form_for(@issue, :url => {:action => 'create'}) do |f|
= f.inputs do
= f.input :name
= f.input :description
= f.buttons
```

SystemStackError in Issues#new

Showing /home/stephane/projects/support/app/views/issues/new.html.haml where line # raised:

stack level too deep
Extracted source (around line #):

Rails.root: /home/stephane/projects/support

Application Trace | Framework Trace | Full Trace
ooor (1.6.5) lib/app/models/open_object_resource.rb:433

Do you know why ?

Do you have a solution ?

Regards,

Stéphane