Got a social network going on and I want users to comment on each others
profiles.
If you guys are so kind and point me to some tutorials or examples. Been
searching for two days now and nothing seems to work.
Found this tutorial, but it doesn`t work for me :
http://www.noupe.com/ajax/create-a-si
Sijo k g wrote:
> Hi
>> I got a simple iteration going on
>>
>> <% @user.sender.each do |sender| %>
>> ...
>> <% end %>
>>
>> Can I fetch and display for example only 2 items from my database insted
>> of all 4 of them ?
>
> in controller @sender = @user.sender.find(:all,:limit => 2)
>
> in v
I got a simple iteration going on
<% @user.sender.each do |sender| %>
...
<% end %>
Can I fetch and display for example only 2 items from my database insted
of all 4 of them ?
Is there a better way to do this ?
I could use will_paginate on the iteration (per_page => 2) but I don`t
want the link
3 matches
Mail list logo