[Rails] .empty? Method
by Michael Boutros other posts by this author
Feb 11 2006 5:32PM messages near this date
[Rails] Re: Webrick very unstable with MySQL 5.0 on Windows
|
Re: [Rails] .empty? Method
I am using:
if @post.empty?
render_text "Post does not exist."
end
But it gives me this error:
NoMethodError in Posts#view
undefined method `empty?' for #<Posts:0x39598d0>
However, if the method list empty? apears and stuff so I am confused.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails@[...].org
http://lists.rubyonrails.org/mailman/listinfo/rails
Thread:
Michael Boutros
Nick Stuart
Michael Boutros
Brian V. Hughes
|