Justin Bailey wrote:
> On 2/2/07, David Heacock <deheacock / earthlink.net> wrote:
>> <%=  if @member_pages.each
>>     link_to 'Go to page >', { :page => ()}
>>   end
>>  %>
>>
>> I get an error "no block given"
> 
> You have a basic syntax error - missing the "do" keyword:

Thanks Justin.  I dropped the conditional and tried this:

<%= link_to 'Go to page >', { :page => @member_pages.each do () end} %>

This did not produce an error message, but it also did not produce what 
I wanted.  Instead, it produced a link to the last page.


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