On 4 March 2013 06:12, Brentwood Reid <bwoodr...@gmail.com> wrote:
>> I am also a new user and I had the same question.  The way I did it was to
>> modify the file app/views/shared/_feed.html.erb
>
>
>    changing
>                 <%= render partial: 'shared/feed_item', collection:
> @feed_items %>
>
>    to
>                 <%= render partial: 'shared/feed_item', collection:
> Micropost.all %>

I assumed that the OP wanted this feature in addition to the existing
capabilities rather than instead of.  If however that is what he wants
then it would be better to change the definition of @feed_items in the
controller rather than changing it in the view.

Colin

>
>   so instead of rendering only the feeds from users you are
> following(@feed_items), it renders them all.
>
> --
> 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/msg/rubyonrails-talk/-/e9QLrc8xmcIJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to