Displaying 20 results from an estimated 1000 matches similar to: "paginate session problem.. (syntax question)"
2006 Jun 11
0
mySQL paginate syntax question for complex SQL. (over 117 views in rubyonrailsforum and no answer, others confused..)
I have this code in my controller and i cannot seem to figure out how to get
it to paginate correctly.. Is there a trick to do something like this?
There are a few others at www.rubyonrailsforum.com that are having the same
issue. Any incite would be great, thanks in advance!
(over 117 views and no answer in rubyonrailsforum???)
def display_location
if params[:search] &&
2006 Aug 15
2
Working with user data
I am a Rails newbie and I am trying to build a test site in which users
will have their own sets of data.
I understand how to manipulate shared data very well. Most of the Rails
examples out there seem to deal with such shared data. I am struggling
with the "best practice" method for a user to work with their own data
however (and not be able to view/edit other users''
2016 Oct 26
2
winbind backend ad not working
Hi Rowland,
not for all users, some users have a gidNumber not inside the range. I
expected to see the users with a gidNumber insite the range. It was a
classicupgrad from a very old samba3 so we have gidNumbers below 100 for
some users, but we only want to have the users with a gidNumber insite
the range. So we don't care about the users outside the range.
Stefan
>
> Have you
2006 Jul 03
0
Pagination with acts_as_ferret
Hey there,
Previous to finding ferret I had a test query setup to do pagination
like:
@listing_pages, @listings =
paginate(:listing, :per_page => 10,
:conditions => [" name LIKE ? ", "%" + search_criteria +
"%"],
:order_by => "name ASC")
Can I do similar pagination with @results array returned from a ferret
2016 Oct 26
2
winbind backend ad not working
Hello,
after a classicupgrade from samb3 with openldap we want to set up a
samba-fileserver. We would like to user the winbind ad backend. So we
configured the smb.conf with the following settings:
-----------------
--------# Global parameters
[global]
bind interfaces only = Yes
interfaces = 192.168.56.102
realm = EXAMPLE.DE
workgroup = EXAMPLE
2003 Dec 29
1
Anyone having problems Logging in to Voice Pulse in Iax.conf
Hi
I just signed up with voicepulse's voice connect service.
then emailed me over configs for my extentions and iax
i enter in all the info and when i start up *
and do show registry it seems to be rejecting my login.
Has anyone seen this before.. Any further insite will be greatly appreciated.
thanks
frankie
(aim)cronparser
(irc)crontibs
17006240093
-------------- next part
2006 Jul 18
1
Capistrano Deployment on Dreamhost
I''m having trouble getting Capistrano to work on Dreamhost. I seem to be
having problems logging in, but I can ssh fine to my dreamhost server
from this machine. This doesn''t seem like a dreamhost specific thing to
me, but I''m kind of stuck.
Here''s the exception I get from "cap setup":
2011 Jul 22
2
problem starting X11 on centos 6
Hi All,
I had an issue. Manually installing Centos 6 everything worked X11 came
up with nvidia binary drivers. Cool.
However, I am working on a kickstart install for Centos 6 and that was
not working. When I started X it
would hang. no mouse no keyboard. however , remote ssh was available and
worked.
Thinking I had some serious bug in nvidia binary was my thought - but I
kept looking.
I saw
2006 Jun 24
1
Parsing XML with REXML problem
Why can it not find my object? What am i missing here? Here is my code:
require ''rexml/document''
include REXML
# classes to represent the objects and relationships in the xml file
class Article
attr_accessor :id, :post, :archive, :ntype, :head, :blurb, :body,
:fblurb, :fimage, :att, :source, :copy, :brand
end
# the base parser
class BaseXMLParser
def initialize(filename)
2006 Apr 12
1
how do i paginate the results of a query?
I have a controller and list page for region object. My list page has a
''name'' text input that can be used to limit the list.
It works except that the paginate gets the full set of regions unqualified
by my search term. I believe this full list is contained in :regions symbol
which I dont seem to be allowed to modify or replace (yes I am a ruby and
rails newb). How can I
2006 Apr 27
5
def list - paginate question
How do I adapt this code to only list articles made by the user logged
into the session?
def list
@article_pages, @article = paginate :articles, :per_page => 10
end
--
Posted via http://www.ruby-forum.com/.
2006 Jul 23
2
how to paginate child records
hi
i know i can do:
@customer_pages, @customers = paginate :customers, :per_page => 8
but these customers have helpdesk calls which are child records. I hoped
i could do something like paginate customers.calls, but dat doesn''t work
what is the best way to get a paginated list of child records?
remco
--
Posted via http://www.ruby-forum.com/.
2003 Nov 24
1
Re: Asterisk-Users digest, Vol 1 #1994 - 14 msgs
as i said, right now i'm just getting my feet wet. but, i will be needing
to build dialplans on the fly. 'add extension' seems like the right call
to make.
.t
> What is the goal of this? It doesn't make much sense to me. Care to
> share some insite into what your goal is?
>
> bkw
>
> On Sun, 23 Nov 2003, tad wrote:
>
> > actually, i do have a
2006 Feb 13
1
Paginate @member.items?
Is there a quick and easy way to paginate something
like @member.items (Member with has_many :items)?
Right now I do in the controller:
@item_pages, @member_items = paginate :item,
:conditions=>["member_id=?", @member.id],
:per_page=>25,
:order=>''datetime desc''
It''d be more DRY if this was possible:
@item_pages, @member_items = paginate
2006 Jan 06
4
"Selecting" a calculated row / Using :select in the paginate method
Hi,
I was trying to use the :select parameter to select a calculated row,
but it appears that the parameter is not picked up by the paginate method.
I want to add the following to the select statement:
timediff(now(), created_on) as age
So I tried:
@story_pages, @stories = paginate :stories, {:per_page => 10, :include
=> ''user'', :select =>
2006 May 22
4
use join table in paginate
How come I allways immediately run into difficult stuff when I''m trying
some new programming language? Am I blind for the simplicity of
Ruby/Rail, which a see must be there? Anyway, don''t try and answer this
rhetoric question. I have got another one for you, seemingly difficult.
I''m struggling with a n:m relationship (in a database, that is) and its
join table.
2006 Mar 01
2
Problem with paginate search
Hi,
Firts all sorry for my poor english
I am doing a simple search with paginate, the problem is the search dont
find the words within acutes (example "dont find sal?n if i search salon").
Its the code for the seach:
def search
words = @params[''search''].to_s.split('' '')
array_conditions = []
for w in words
array_conditions =
2006 Apr 07
2
Paginate single items
Hi,
In my blog i display a post. I want to display a link tot he previous
post if there is 1 and a link tot he next post if there is one.
So i have in my controller
def post
@post = Post.find(params[:id])
@post_pages, @posts = paginate :posts, :per_page => 1
render(:layout => false)
end
And the following code in post.rhtml
<% if @post_pages.current.next %>
<%=
2005 Dec 16
13
How to pass a collection to paginate?
There must be a better way to write this code:
@project_pages, @projects= paginate :project,
:per_page => 10,
:conditions => ["account_id = ?", account]
?!
If only I could pass the sub-collection
account = ...
@projects = account.project
to paginate, instead of letting it extract it with a find :all + sql
conditions
Alain.
--
Posted via
2006 Jan 06
2
Paginate from a difficult sql query
Hello,
I have 2 tables
table colors :
+----------------------+
| id | user_id | name |
+----------------------+
| 1 | 1 | test1 |
| 2 | 2 | test2 |
| 3 | 3 | test3 |
+----------------------+
table users :
+----------------------+
| id | enabled | name |
+----------------------+
| 1 | 1 | bob |
| 2 | 1