# (no subject)

**URL:** <https://www.ruby-forum.com/t/no-subject/203570>\
**Category:** Rails\
**Created:** [February 23, 2011, 6:25am UTC](https://www.ruby-forum.com/t/no-subject/203570 "2011-02-23T06:25:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 23, 2011, 6:25am UTC](https://www.ruby-forum.com/t/no-subject/203570/1 "2011-02-23T06:25:59Z")

</div>

hi all,

In my controller,

def reg\_app  
a=ApiGroup.find\_by\_name(params[:id])  
b=a.client\_applications  
@clientapp=[]  
@key=[]  
@service\_profile=[]  
if !b.nil?  
for i in 0…b.length do  
h=b[i].keys  
@key\<\<h[0].key  
@clientapp\<\<b[i].name  
@service\_profile\<\<h[0].service\_profile\_id  
end

```
           render :update do |page|
           page.hide 'flash_notice111'
           page.replace 'update_apigroup1', :partial => 'capp'
           end

    else
                render :update do |page|
                page.replace 'update_apigroup1', :partial =>

```

‘layouts/no\_permissions’  
end  
end  
end

in my view

\<% for i in removed\_email\_address@domain.invalid do %\> \<%end%\>

| \<%= @clientapp[i]%\> | \<%= @key[i] %\> | \<%= @service\_profile[i] %\> |

my output:

testapp 355ff577d2dfdb2a2425cdf89bd9f79d 1 app2  
63d1d5dfa4a461ca71eacf8ef5aa4cf4 1 app3 141d17a11e5302e8f0ea2970b3244fae  
1  
but i want

testapp 355ff577d2dfdb2a2425cdf89bd9f79d 1in 1st page

app2 63d1d5dfa4a461ca71eacf8ef5aa4cf4 1in 2nd page

i want to use ajax pagination,how can i do it for this
