Form_for not rendering

Hello

I am developing an application on rails using a couchDB database. I
already can connect to the database and view some information.
Now I am trying to create a new object of my model.

My model is named author. My controller is named authors.

The code of my model is the following one:

class Author < CouchRest::Model::Base

  timestamps!

  property :_id, String
  property :id, Integer
  property :title, String
  property :first_name, String
  property :last_name, String

  view_by :id,
          :map => "function(doc) {
            if(doc._id.indexOf('Authors_') == 0) {
              emit(null, doc);
            }
          }"
end

The code of my controller is the following one:

The code of my new.html.erb file is the following one:

The list method is working fine, it shows what I am expecting to.
However, the “new” html page does not shows anything except the title
and the “back” link. No error is generated. Everything is ok except that
the form is not generated/displayed/rendered.
Does anyone have an idea about the problem/solution of it?
Thank you
Best regards

On 9 May 2012 11:08, Paulo C. [email protected] wrote:

[code]
view_by :id,

[quote]
end
<% form_for @author do |f| %>
Try <%= form_for …

If that still does not work have a look at the html of the page (View

Page Source or similar in your browser) and see if there is any html
at all for the form.

Colin

Thanks a lot for your help.

This little “=” was missing and I was not able to see it.

Best regards.

Colin L. wrote in post #1060124:

On 9 May 2012 11:08, Paulo C. [email protected] wrote:

[code]
view_by :id,

[quote]
end
<% form_for @author do |f| %>
Try <%= form_for …

If that still does not work have a look at the html of the page (View

Page Source or similar in your browser) and see if there is any html
at all for the form.

Colin