On Apr 26, 10:21 am, amrit pal pathak <amritpalpath...@gmail.com>
wrote:

>
>                              is it saying @book variablei is nil?
>    it is defined in controller as :
>
>  class BookController < ApplicationController
>   def index
>   @book =Book.new
>   end
>   end

Your index action defines @book, but you're testing the "new" action.

>                                                 One thing more,in
> new.html.erb,i have written "render 'form' ",but there is no such file
> (view).The file there is _form.html.erb.Is it correct?

That's ok - rails will work that bit out.

Fred
>
> Amrit pal

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to