similar to: Custom paginator?

Displaying 20 results from an estimated 1000 matches similar to: "Custom paginator?"

2015 Sep 08
0
Multiple vacation
Op 8-9-2015 om 17:15 schreef Michele Locati: > I'm using Dovecot 2.2.9 and I'm having problems configuring multiple > vacation actions. > The problem is that I'd like to have two different senders and two > different messages, selecting the correct case by the recipient email > address. > I mean, if someone writes me to my email address "to-address1 at
2015 Sep 08
3
Multiple vacation
Hi all I'm using Dovecot 2.2.9 and I'm having problems configuring multiple vacation actions. The problem is that I'd like to have two different senders and two different messages, selecting the correct case by the recipient email address. I mean, if someone writes me to my email address "to-address1 at example.com" I'd like to answer from "from-address1 at
2005 Dec 01
0
problem with options_from_collection_for_select() need id not name
hey, i need a select list with a id property and not name, cuz i just ajax with this list and it checks on id not name if @request.post? #called by ajax if @request.xml_http_request? #called by ajax @geotag_id=params[:geotag_id].nil? ? -2 : params[:geotag_id] else @geotag_id=params[:geotag][:id].blank? ? -1:params[:geotag][:id] end else @geotag_id = -1 end i use this @geotags =
2006 Oct 13
3
Validation errors in has_one/belongs_to relationships.
I have two objects, QuoteInput and Insured. QuoteInput has one Insured and Insured belongs to QuoteInput. I don''t understand what I''m seeing. I assign an Insured to a QuoteInput. The Insured object has invalid data. I call save! on the quote input. QuoteInput has no validations. I expect two things to happen - 1) an exception should be thrown, indicating that there was a
2006 Nov 04
0
Check_box woes
I have a User model and an Address model. A user has_many addresses, and an address belongs_to a user. An address object for a user could be a billing, shipping or marketing address. The way I''m tracking this is via the user attributes: billing_adress_id, marketing_address_id and shipping_address_id in the user table, which holds the relevant address id. But in my form that allows a
2006 Jun 16
0
Strange problem with ActionMailer
I have the following code to send out email notifications. The view can vary for each call to signup_confirmation, so I''m setting template_root on each call in order to do that. It works for a while, but after a few days it will start using a value of signup_path that was used in a previous call. In other words, Notifier.template_root = signup path does not actually set
2006 Jun 21
0
Possible bug in actionmailer
I have the following code to send out email notifications. The view can vary for each call to signup_confirmation, so I''m setting template_root on each call in order to do that. It works for a while, but after a few days it will start using a value of signup_path that was used in a previous call. In other words, Notifier.template_root = signup path does not actually set
2006 Mar 26
2
Shared Columns in an STI
I have a an STI table which acts_as_tree, that has a large number of classes/types. My common fields are: id parent_id name description with 4 more text fields, I could cover most of my classes if I could redefine the name of the field like this. text1 AS address1 text2 AS address2 text3 AS zipcode For one class and text 1 AS model_number text2 AS vendor Is there a construct that will allow
2008 Mar 19
2
Stub / Mock - A little guidance?
Hi there, I''m still trying to wrap my head around when to use a stub and a mock. If I understand this right, I should be using a ''mock'' when imitating an object, but not its behavior. I should be using a stub when I want to imitate the behavior of an object. Does that sound about right? With that said, I''m struggling a little trying to spec out this instance
2006 Jul 19
5
Model Validation - with a twist
I''m stuck in a catch-22 type problem. I have an insert form for a table that uses the validation in the model. i.e. When you click submit on the form and haven''t filled in the required fields then you get the nice rails error messages saying "field can not be blank". This works fine until I introduce some more logic. What I''m trying to do is to validate
2017 Dec 23
0
Hoisting in the presence of volatile loads.
Hello. This might be a trivial question, but is it correct if the signal handler aborts the program? For example: int *normal = ADDRESS1; volatile int* ptr = ADDRESS2; int k = *ptr; // segfaults, and the signal handler calls abort() int value = *normal; // this may be UB(undefined behavior). Let's assume that normal is dereferenceable if ptr1 does not raise SEGSEGV, but accessing
2007 Nov 14
0
Should receive field_for failing
I have a spec that''s not behaving as I''m thinking it should. Here''s the code: http://pastie.caboo.se/117931 it''s failing with: ActionView::TemplateError in ''customers/new should receive fields_for'' Mock ''ActionView::Base'' expected :form_for with ("address", #<Address id: nil, address1: "123 Main St.",
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works
2006 Mar 08
1
MSSQL error - 80004005 & Rails
hey there folks, i have a bit of a sitch here and i would love some help/input on it. i''ve inherited a horrible asp/mssql app that i''m re-writting using rails, but unfortunately i have to keep the asp version up and running. in order to do so i''ve had to write some admin functions, which i''ve done in rails. because the mssql schema wasn''t written
2005 Jun 29
1
iproute2 ping question
Hi List, New subscriber/lartc user here. Have read the entire lar&tc howto, alexy''s ip_cref, etc. and must say, this makes iptables seem downright *easy*. I''m trying to build a three-legged linux router (WAN/LAN/DMZ) and have had it more or less working with iptables but would like to learn layer2 routing with iproute2. I have an adsl/29 network and would like my
2011 Apr 20
1
sieve-test ignores precedence and other for vacation
Hello, I'm using pigeonhole-0.2.3, it works fine. I tried to verify some build in checks of vacation concerning precedence or auto-submitted header lines. It looks like sieve-test ignores header lines like Auto-Submitted: auto-submitted Precedence: bulk Return-Path: MAILER-DAEMON at ... if I have a vacation script like require ["vacation", "regex",
2005 Dec 23
1
pagination problem
hey, i have this problem in the database i have 32 records and the sql filtered 4 records #getting the callerid records depending on the given paramaters and paginate it @callerid_pages = Paginator.new self, CallerId.count, 10, @params[''page''] @caller_ids = CallerId.find(:all, :conditions =>["geotags.firm_id = ? ", @firm_id], :order => " geotags.address1
2007 Nov 21
4
Builder::XmlMarkup adds <inspect/> on printing and <clone/> on saving
Hello, I am new in this group. Please give me a short hint, in case this is the wrong place for my posting. I want to create an XML file and store it in "filetransfer". The XML part of the file (the body) sould go to "filetransfer.data". Despite the last line, everything is fine with the code below. With "filetransfer.save" two entries "<clone/>"
2008 Nov 29
3
Yet another "NameError: uninitialized constant" problem
I''ve searched for information about this and compared what I have to the solutions I can find, here and elsewhere. I found some good and useful information, yet my stuff still doesn''t work. I was hoping somebody here could spot something. I''m using rails 2.1.2 and I''m pretty new to ruby and rails. My goal is a fairly simple many-to-many relationship linking
2009 Apr 05
2
Prohibit removing INBOX
Hello list, I'm using dovecot 1.1.11 and I'm going to prohibit users to remove their INBOX and some other directories in the mailbox root. I used Access Control Lists (http://wiki.dovecot.org/ACL) to do this: protocol imap { mail_plugins = acl } plugin { # With global ACLs in /etc/dovecot/acls/ directory: acl = vfile:/etc/dovecot/acls } /etc/dovecot/acls/.DEFAULT: owner