search for: first_msg

Displaying 3 results from an estimated 3 matches for "first_msg".

Did you mean: first_arg
2005 Dec 29
4
Paginate do a Count(*) request before, how access that count value.
Hello, AV::paginate query first by a count, how access this value in the controller or view ? Why ? Because I''ll like to display the total number or records found w/o doing another expenssive Count. Thanks,
2005 Dec 29
1
Paginate do a Count(*) request before...
...i which might help you: http://wiki.rubyonrails.org/rails/pages/HowtoPagination To Adam, one tip about your solution. Once you have a Paginator object that the view can see, you can use its methods to get the number of items while in the view instead of having to set the variables @total, @first_msg, @last_msg in the controller. (Everyone has their own style but I like to keep my controller as streamlined as I can.) Just use something like this in your view: Listing <%= @message_pages.current.first_item %> - <%= @message_pages.current.last_item %> of <%= pluralize(@ messa...
2020 May 18
4
how does autofs deal with stuck NFS mounts and suspending to RAM?
Hi, after trying sshfs to mount a remote file system on a server with the result that sshfs will sooner or later get stuck and require a reboot of the client, I'm fed up with it and am looking for alternatives. So next I would like to use NFS over a VPN connection instead. To minimize the instances of the NFS mount getting stuck, it might be helpful to use autofs. What happens when the