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 <[email protected]> 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 [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.
>>>
>>
>>
>>
>> --
>> 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 [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