[Rails] Re: Ajax Pagination, repeating
The code
<%= div_for holiday do %>
What i have is each individual record now having the column headings
above the record, when it should be on top of every page just once?
Colin Law wrote in post #1055437:
> On 7 April 2012 20:47, Colin Law <clanlaw@googlemail.com> wrote:
>>>
>>> </tr>
>>> <% div_for for holidays in @holidays%>
>>
>> That should be "for holiday in" not "for holidays in"
>>
>> Have a look at the Rails Guide on Debugging, it will show you how to
>> debug code so you can work out such problems yourself.
>
> But even then I am not convinced it will work. What is the div_for
> doing there? Since you have not got "<%= div_for" the div_for will
> not actually produce any code. I think more likely you want something
> like
> <% @holidays.each do |holiday| %>
> <%= div_for holiday do %>
>
> Colin
>
>>> </tr>
>>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>
>>
>>
>>
>> --
>> gplus.to/clanlaw
>
>
>
> --
> gplus.to/clanlaw
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home