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
<table>
<% for i in [email protected] do %>
<tr><td><%= @clientapp[i]%></td>
<td><%= @key[i] %></td>
<td><%= @service_profile[i] %></td>
<%end%>
</table>
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
--
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.