This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Ruby and the fly likes form_for not rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "form_for not rendering" Watch "form_for not rendering" New topic
Author

form_for not rendering

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
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:



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
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1358
    
  17
Hi there,

You didn't say which version of Rails you're using, but I'm going to just assume Rails 3 for a second.

Have you tried changing this:



into



?
Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
Yes, this was the problem...

Thank you very much.

Best regards.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: form_for not rendering