Hey Mohammed,

You've used a $ sigil instead of @

Also, to maybe help it read better, don't use the ! (not) and then you can
change the contents of the if, else parts.

As a developer, that reads better. More intuitive. Just my opinion.

<% if @properties.blank? %>
   <h3>no records found</h3>
<%else%>
   <%= render :partial => "show_properties_list" %>
<%end%>

On 4 May 2010 23:32, Michael Pavling <[email protected]> wrote:

> On 4 May 2010 22:16, Mohammed Alenazi <[email protected]> wrote:
> > <% if  !$properties.blank? %>
>
> You might want to change the dollar sign to an @
>  <% if  [email protected]? %>
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to