Im using Rails 3 in my project.
In controller > articles In view > index.html.erb
<% if @articles.blank? %>
<%= render :partial => "blank" %>
I dont want to write querysets in views for checkin (if empty do this or do this) How can I pass blank slate partial (if queryset is empty) inside controller ?
Thanks.
@articlesis blank in the view?