controller is
def form_for_test
@blog= Blog.find[:all]
end
def save
blog = Blog.find(params[:id])
blog.update_attributes(params[:blog])
redirect_to :action => 'form_for_test'
end
error msg: Couldn't find Blog without an ID
--
Posted via http://www.ruby-forum.com/.
>
> def form_for_test
> @blog= Blog.find[:all]
>
that's wrong. You probably meant Blog.find :all or Blog.find(:all)
(which are the same)
Fred