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 0...@clientapp.size 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