Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorhpatoio
    • CommentTimeMay 15th 2008
     
    Is there a way to pass an object to a partial ?

    This doesn't work ($customer_pages is an AkPaginator object)

    <%= render :partial => 'shared/pagination', :locals => {'pager' => $customer_pages} %>

    this works

    <%= render :partial => 'shared/pagination', :locals => {'pager' => "myString"} %>

    and this too ( $number = 1)

    <%= render :partial => 'shared/pagination', :locals => {'pager' => $number} %>

    regards

    --
    Simone
    •  
      CommentAuthorbermi
    • CommentTimeMay 17th 2008
     

    SImone,

    On Sintags you don't have to add the $ for variables, so this

    <%= render :partial => 'shared/pagination', :locals => {'pager' => customer_pages} %>
    

    Should work.

Add your comments
    Username Password
  • Format comments as