2010/1/15 Newb Newb <[email protected]>:
>
>
> Hello friends,
>
> <%= link_to "Generate Report", {:action => 'generate_report' ,:users =>
> all_users.map{|u| u.id}.join(",")}%>

Instead of sending all the ids, which as you note below ends up with a
request that is too large, send other information that you can use in
the controller to determine the list of users, for example in the
given case you could say
:users => 'all'

Colin

>
> The above action generates report for the users.
> As per the filter results the all_users array length would be vary.
> if the all_users array length is 3500.
> when i click the above link to genearte report for the 3500 users it
> gives me error like below
> #
> ERROR
> The requested URL could not be retrieved
>
> While trying to retrieve the URL: [no URL]
>
> The following error was encountered:
>
>    * The request or reply is too large.
>
>      If you are making a POST or PUT request, then your request body
> (the thing you are trying to upload) is too large. If you are making a
> GET request, then the reply body (what you are trying to download) is
> too large. These limits have been established by the Internet Service
> Provider who operates this cache. Please contact them directly if you
> feel this is an error.
>
> Your cache administrator is root.
> #
> Thanks for any helps.
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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.
>
>
>
>
-- 
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.


Reply via email to