Im using Rails 3 in my project.
In the controller> articles In sight> index.html.erb
<% if @articles.blank? %> <%= render :partial => "blank" %>
I donβt want to write requests in views for verification (if it is empty or to do it) How can I pass an empty partial slider (if the set of requests is empty) inside the controller?
Thanks.
ruby-on-rails ruby-on-rails-3
Harry
source share