similar to: Pagination and custom routing

Displaying 20 results from an estimated 2000 matches similar to: "Pagination and custom routing"

2006 Feb 23
6
Search Forms with Pagination
Hi there everyone, I''ve recently moved to RoR and am still struggling with the basics of what used to be second nature in php, so on with my question: I have a database with products, and I need to create a search form that paginates the results. What I have so far in my controller is: def list # If the values are nil, then set them, otherwise wrap them in % # Also,
2006 Aug 03
2
pagination with customer list.rhtml
(To preface this - you can just imagine I am making the cookbook from the Rolling with Ruby on Rails tutorial) I have made a customer list view (list.rhtml), so that I could include attributes from multiple database tables. This works fine, however, the list page no longer paginates (i.e. does limit the item list to 10 items at a time, with a 1, 2, 3... links at the bottom) I am trying to
2006 Jul 11
1
Problems using the authorization plugin from Bill Katz
Hello everyone, I was trying to set up access control in a new application Im working on, I''m trying to use the excellent authorization plugin from Bill Katz, Its pretty straight forward to setup and should be to use. But when i try to give the same permission on two differents users on the same object i get an error. (Well , Im kinda new to all this rails stuff) r = Red.find(1) u1 =
2006 Sep 06
1
31K failed stat64's when viewing a simple (no db) rhtml page?
I''m trying to help the sys admins of my server figure out what is up with our Rails installation (debian sarge - completely up to date). Hitting a simple page yields 31,000 failed stat64''s and takes anywhere from 8 - 44 seconds. They #! for ruby is correct everywhere, but it''s like it can''t find Rails. These are box stock standard installs. Here''s
2001 May 15
1
How to display bookmarks on Lotus Notes 5 - Here is the solution
If you use Notes 5 with wine, you probably have the problem, that the bookmarks frame doesn't open when you click on Favourites or other folders on the left side. Solution: Create a Memo in Notes Go to the Body field and select Create/Hotspot/Button In the lower half, select Script and paste in this code Sub Click(Source As Button) Dim db As New
2008 Apr 20
2
mod_rails showing plain text instead of actual page
hello! i got this forum powered by apache and mod_rails lately when i create / edit posts, i get plain html text showing up instead of the actual page. here''s what i see: -- Content-Type: text/html; charset=utf-8 Set-Cookie: _mysite_session=BAh7CzoOcmV0dXJuX3RvMDoKdGl0bGV7BmkVdToJVGltZQ2IDhuAK1UeADoL %250AdG9waWNzewZpBnU7Bw2HDhuA2%252FZJ7zoJdXNlcmkGIgpmbGFzaElDOidBY3Rp
2017 Nov 05
0
Help in R
> On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <r-help at r-project.org> wrote: > > > Hey, > > I am a beginner in R. > > How do I read last 10 values from column- Movie, from a dataset? Some questions are so simple that they strongly suggest no prior effort at self-leanrning. In such cases the usual recommendation given at Rhelp is that you read an
2007 Aug 13
1
Extract part of vector
Dear R-users, How do I extract numbers between asp?P= and &VID from my txt vector? I have tried grep function with no luck. txt <- c(" http://www.mysite.com/system/empty.asp?P=2&VID=default&SID=421384237289476&S=1&C=18631", " http://www.mysite.com/system/empty.asp?P=123&VID=default&SID=421384237289476&S=1&C=18643", "
2007 Nov 27
1
routing
Hi all, My site uses subdomains to define an item. Eg http://itemname.mysite.com I fetch the itemname and render the appropriate site from that itemname. The subdomain is used everywhere (eg http://itemname.mysite.com/events, http://itemname.mysite.com/products/show/11, ...) I now want to give the user the possibilty to use a ''real'' domain like www.itemname.com that should
2018 Nov 29
3
samba_dnsupdate REFUSED between Samba4 AD DC and Win 2008r2
Hi, I've some trouble in getting samba internal DNS server in sync with others DNS (Windows) of my AD domain. samba_dnsupdate returns: update failed: REFUSED Failed update of 1 entries I'm running samba Version 4.5.12-Debian root at mysamba4dc:~# dpkg -l | grep samba ii  python-samba                   2:4.5.12+dfsg-2+deb9u3 amd64        Python bindings for Samba ii 
2006 Feb 01
2
Getting Started with Site Redesign and RoR
Hello all: I am in the process of redesigning my site and was thinking about incorporating RoR into the overall structure. However, there are multiple things I would like to create with Rails, namely a gallery, a weblog, and portfolio management system. Given that I am going to be using a lot of RoR, what is the best way to accomplish this task? Here are some random things that have come
2005 Nov 22
4
multiple rails apps on one lighttpd
Good evening (or afternoon or whatever it is where you are), Before I start setting it all up, I have a question about lighttpd and multiple rails apps. From what I have read, it is at the minute only possible to do multiple rails apps using subdomains: typo.mysite.com hieraki.mysite.com rforum.mysite.com etc, etc and not currently possible to do this: mysite.com/typo mysite.com/rforums
2013 Feb 22
1
Variables within Manifests question
Hello all Can someone please help me or answer if this is possible I''m using the puppet forge IIS module, and want to use variables within the syntax dependent up ip address for example: colo_a = 1.1.1.0 colo_b = 2.2.2.0 if $network_local_area_connection = 1.1.1.0 add colo_a elseif $network_local_area_connection = 2.2.2.0 add colo_b iis_site {''mysite.co.uk'':
2008 Jan 23
7
Apache, Mongrel, Authentication
A question about mongrel, apache and authentication. I''ve got a Rails site with I think a very typical setup: a mongrel cluster behind an Apache proxy. So Apache''s handling the static stuff and it hands off dynamic content to mongrel. I want to put the site temporarily behind Apache''s basic authentication. What I get when I do this is that is a password prompt which
2011 Feb 21
5
Segmentation fault running doveadm import
Hello. I have tried to restore a test user mailbox and I get a segmentation fault doveadm -D import -u ox101 at us.es mdbox:/backup/bacula-restores/buzones/mysite/15/b1/ox101/ "" all /doveadm(entrega): Debug: Loading modules from directory: /usr/lib64/dovecot doveadm(entrega): Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so doveadm(entrega): Debug: Module
2007 Jul 19
1
one mongrel with hundreds of CLOSE_WAIT tcp connections
Hi, I''m running into a strange issue where one mongrel will sometimes develop hundreds of CLOSE_WAIT TCP connections, mostly to apache (I think -- see sample lsof output below). I haven''t had a chance to get the mongrel with this behavior into USR1 debug mode yet. I didn''t catch it in time. This happens a couple times a day on average at seemingly random times.
2007 Feb 09
3
Re: URL issues
hello... On 2/8/07, cdvr <codecraig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > I watched the rails screencast on creating a blog in 15 minutes. > I followed along got it working on my home PC and I then uploaded it > to my web host. So I have, > > /home/<username>/blog > > I had to change some config in the blog app (i.e. production
2005 Dec 23
2
has_many and belongs_to relationship error
Hi i am getting following error ActiveRecord::StatementInvalid in Blog#index Showing app/views/blog/index.rhtml where line #10 raised: Mysql::Error: #42S22Unknown column ''posts.user_id'' in ''where clause'': SELECT * FROM posts WHERE (posts.user_id = 4) Extracted source (around line #10): 7: <div class="separator">&nbsp;</div> 8:
2007 Jul 19
0
one mongrel with *lots* of close_wait tcp connections
* cross posted to the mongrel mailing list* Hi, I''m running into a strange issue where one mongrel will sometimes develop hundreds of CLOSE_WAIT TCP connections, mostly to apache (I think -- see sample lsof output below). I haven''t had a chance to get the mongrel with this behavior into USR1 debug mode yet. I wrote a little loop below that will catch it next time. This
2004 Nov 03
1
File case sensitivity
Hi; I've run into a somewhat interesting issue in regards to IIS serving content from a samba share. Occasionly, IIS will return 404 errors for content that does infact exist. >From the samba machine, I captured the following: This is an example of the site http://www.mysite.co.nz/foo not working: [2004/11/04 09:30:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353)