Displaying 20 results from an estimated 50000 matches similar to: "have records expire after certain time?"
2006 Feb 01
4
Locking out users from certain records/urls
I am using the standard login controller that ships with RoR to
authenticate users in my application. In my app, Users belong to
Clients, Clients have Projects that users are assigned to (stored in a
stakeholder table with user_id and project_id columns) , then each
project has a bunch of folders and assets (file uploads).
So currently I have urls that look like /project/show/12 etc. I want
2006 Aug 02
4
applying conditions to ActiveRecord call in model.rb
If @c is an instance for the User class and lets say I want to call
@c.pictures, which would be the user''s pictures.
How can I setup up RoR so that I could append the condition
"status=''available''" to the conditions arguments EVERYTIME .pictures is
called. This way I can only call available pictures
Is there some kind of filter I can apply to the
2016 Jun 08
4
password expire warning for dovecot users in IMAP/POP login
Dear list,
Is it possible to give a notification about password exprire warning to
users authenticated by OpenLDAP when the users login via dovecot using
IMAP or POP? For example, when you ssh to a server and/or run
ldapsearch, you can be warned with password expire warning like below:
# ssh testuser at localhost
testuser at localhost's password:
Your password will expire in 31 minute(s).
2006 Jul 29
1
creating and storing records in Ruby
I''ve read through my RoR books and I can''t seem to find the solution.
This is a pretty basic, easy, and practical application for RoR. If you
guys know of any resources on the net to answer these questions let me
know.
Question 1:
Basically, I have a many-to-many relationship that I want to add records
to. I use something like this to add records in the A_B table:
2003 Feb 04
3
password expire time
In Samba 2.2.7a, 'password expire time' appears to be being ignored.
When I run 'smbstatus' it says:
Unknown parameter encountered: "password expire time"
Ignoring unknown parameter "password expire time"
What should I be using to force a password change every n days?
Regards,
--
Adam Smith
Information Technology Officer
SAGE Automation Ltd.
2006 Jul 12
6
Copying Records
This might seem like a silly quesiton but it''s been baffling me all day!
I want to copy all records matching certain criteria from table A to
table B.
I know how to do his with SQL but not with RoR.
--
Posted via http://www.ruby-forum.com/.
2009 May 20
3
Can expire-tool skip folders with "expire time in future" errors?
Hi folks,
when I run expire-tool, I often see messages like the following:
# dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
Info: user/Trash: stop, expire time in future: Fri May 22 17:42:23 2009
the server's dovecot.conf contains the following line:
expire = Trash 2 Junk 7 */News 30 */Reports 7
>From what I observe, an error of "expire time in future" in one
2006 Jul 24
3
Customize list.rhtml to display only certain db columns
Hi,
Very new to RoR; have been a flash developer for four years or so. I
have an urgent question -- in the list.rhtml file, I only want to
display certain columns instead of dumping out all the columns in the
database. Could someone shed some light this topic? Thanks!!!
Sam
--
Posted via http://www.ruby-forum.com/.
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
All,
I have ordered AWDWR and am anxiously awaiting its arrival. In the
meantime I still am playing with ROR using radrails. I have a few
questions ...
I create a table named customers with the following details:
Field Type Null Key Default Extra
id int(11) NO PRI auto_increment
customer_name varchar(50) NO
inbound_retention int(11) NO
outbound_retention int(11) NO
unix_admin_email
2006 Jan 09
2
Rating/Survey Plugin
I would like include the ability for people to rate posts on my site
from 1 to 5. I would like to then display the average rating for each
post. To compute the average each time is obviously database and cpu
intensive. I have been thinking about the best solution. I could
certainly use a cache and expire it every x minutes. However, I don''t
want to reinvent the wheel. Is there
2006 Jan 16
8
AJAX + Table.
Hello all.
I am trying ot load table rows using AJAX based on a search. The
following code results in:
1. Firefox renders correctly (Multiple rows inserted into page).
2. Opera renders the entire returned string in one <td> by the looks of
it (Bunched up under first header, the <> tags arne''t visible)
3. IE6 does nothing....great ;)
This is driving me nuts so any help
2005 Dec 29
4
Any switchers from mod_perl
Good afternoon,
I have been developing in mod_perl for many years, and my livelihood is based on
being productive with it. I''ve spent the past week reading and testing RoR and
it does look good. But before I take the plunge for my next project, I was
hoping to hear from other mod_perl switchers.
One of the main reasons I like mod_perl is code flexibility. I like being able
to insert
2006 Mar 31
35
Frustrated with RoR environment splintering
Why isnt the RoR community focusing on robust and scalable mod_perl style of
Apache environment, rather then splintering all over the place with
lighthttp, mongrel, WEBrick, SCGI, fcgi, etc???
Its frustrating as someone who is trying to migrate to RoR.
Its very unlikely I would ever get a contract to work on any webserver
except Apache, so it would seem logicaly to focus all our efforts to
2008 Aug 05
4
expire-plugin: configuration dict-server
Hello all!
I tried to add the expire-plugin to my dovecot-installation (CentOS-RPM:
dovecot-1.1.1-2_76.el5) and followed the plugin-page from the WIKI
(http://wiki.dovecot.org/Plugins/Expire).
Unfortunately I have problems with the dictionary:
-->
dovecot: Aug 05 13:30:25 Error: dict: Unknown dict module: db
dovecot: Aug 05 13:30:25 Error: dict: Failed to initialize dictionary
2011 Nov 02
1
current deployment options
- Have been away from RoR development for a couple of years.
- Will be doing a new project soon, starting with RoR 3.1.
- This site will be hosted on a dedicated user-controlled server inside their intranet, so this question is not about hosting services.
- Expect about 100,000 page views a day, with a bit more spikiness than normal around some shift changes, so provisioning as if for 500,000
2005 Mar 07
1
Legacy DB Guide?
I''m looking at using RoR for a system tying in with a legacy DB that
can''t be modified (other apps using etc). It uses stored procs
extensively.
Searching for some kind of a guide / tutorial etc for handling this
kind of situation I''m only coming up with a bunch of 2 paragraph
articles saying "RoR is great! but there might be some trouble with
legacy systems".
2006 Feb 13
4
activerecord << operator
Hello,
I am new here and actually I am writing my first RoR app.
My question is:
--------
class Topic < ActiveRecord::Base
has_many :messages
end
class Message < ActiveRecord::Base
belongs_to :topic
end
class ForumController < ApplicationController
def post
message = Message.new(params[:message])
@topic = Topic.find(params[:id])
@topic.messages
2010 Aug 24
5
When should dictionary entries for the expire plugin be added/updated?
I've set up Dovecot 2.0 with the expire plugin using an SQLite DB, and
when mail is delivered via dovecto-lda, the DB gets updated as expected.
However, when I use Thunderbird 3.1.2 for Mac OS X to move a message to
any of the folders known to the expire plugin (e.g. the 'tmp' folder),
the SQLite DB is not updated.
Here is an excerpt of my current configuration:
#
2008 Jul 16
2
New transactional enterprise e-commerce web site
We are close to releasing a high-volume, multi-lingual, e-commerce
site in Ruby on Rails that has previously been written in an
alternative Java framework (e.g. servlets and JSP).
This is a real-time 24/7 betting and gaming web site based out of
Gibraltar in Europe.
When we embarked on this project, we really wanted to find examples of
other high-volume web sites that had adopted RoR. We did
2006 Aug 07
3
Monitoring Rails apps?
I just had an interesting meeting with developers from other parts of
my company. One of the things they said they really liked about Java-
based solutions was the availability of sys-admin tools to monitor
Java (probably J2EE) applications.
Nothing comes to mind in the RoR camp to cover this. I''m sure there
are plenty of generic tools for watching pings and log files, but is