When I attempt to use the same query in activerecord, it works perfectly
fine. When I try to use it inside of the partial view, nothing shows at
all.


feed_controller.rb

def hashtags
@hashtags = SimpleHashtag::Hashtag.order('created_at DESC').limit(10)
end


_hashtag_list.html.erb
<% if @hashtags.present? %>
      <ul>
        <% @hashtags.each do |hashtag| %>
            <li><%= link_to hashtag.name, hashtag_path(hashtag.name)
%></li>
        <% end %>
      </ul>
  <% end %>

I have the slightest clue to why the list elements aren't being
populated by the data.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/07f84000c7d1023fa48fcd61a979094b%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to