similar to: How can I order_by a sub folder?

Displaying 20 results from an estimated 30000 matches similar to: "How can I order_by a sub folder?"

2006 Mar 13
6
:dependent => :destroy
Hi, There is something I don''t understand about :dependent => :destroy. I hope someone can help me. Consider this code: class Folder < ActiveRecord::Base has_many :myfiles has_many :folders has_many :group_folders, :dependent => :destroy validates_uniqueness_of :name, :scope => "folder_id" validates_presence_of :name before_destroy
2012 Mar 26
1
Models in sub-folders in Rails 3
I have a Rails 2 project in which models are in sub-folders, but not in a name space app/models/sub_folder/posts.rb class Post < ActiveRecord::Base end The controllers are also in sub-folders, but are name spaced (views also in a corresponding sub_folder). app/controllers/sub_folder/posts_controller.rb class SubFolder::PostsController < ApplicationController end This works fine, but I
2023 Jul 26
1
Downloading a directory of text files into R
?s 23:06 de 25/07/2023, Bob Green escreveu: > Hello, > > I am seeking advice as to how I can download the 833 files from this > site:"http://home.brisnet.org.au/~bgreen/Data/" > > I want to be able to download them to perform a textual analysis. > > If the 833 files, which are in a Directory with two subfolders were on > my computer I could read them
2006 Feb 23
13
Check if a saved user''s name is admin
Hi all, I have a question about this method in my User model: # Returns true for the (saved) user called "admin" def is_the_administrator true if save and name == "admin" end The method returns true if the user''s name is admin. However, I only want to return true if the state of the object is "saved", so I call the save method first. I''m
2016 May 09
2
resorting emails by date order after move/copy to sub folder ?
I have just used Squirrel web client to re organize some old emails to subfolders. that worked OK, EXCEPT, all these emails are now in order that I have moved them rather than original date, is that some 'simple' way to re-sort them back by original date ? thanks for any pointers, sorry for dumb question Voytek
2010 Sep 06
6
Sub-Sub-Subfolders not shown after converting from maildir to mdbox
Hi again, I just recognized a problem concerning subfolders after converting from maildir to mdbox. Thunderbird and SeaMonkey don?t show folders that are subfolders of subfolders. Have a look at the filesystem: discovery:/var/mail/domain.tld/patrick/mdbox/mailboxes/Folder1/Folder2# ls -l insgesamt 8 drwx------ 2 vmail vmail 4096 5. Sep 23:42 dbox-Mails drwx------ 3 vmail vmail 4096 5. Sep
2013 Apr 06
2
mdbox and folders containing both messages and sub-folders
I've got Dovecot 2.2r5 (Ubuntu package version 2:2.2.0~rc5-0~auto+1 from the "testing-auto/dovecot-2.2" repository on xi.rename-it.nl) running on a brand-new Ubuntu 12.04.2 server. I'm trying to configure Dovecot (using the "mdbox" mailbox format) to allow folders to contain both messages and sub-folders. However, it's not working consistently. I need to have
2011 Mar 09
1
problems with public (sub)folders
Hi, i am trying to share a maildir++ mailbox to other users but i can only subscribe to the root directory. The subfolders of the public mailbox do not appear in the exported list. Does anyone has an idea how i can share the subfolders too without creating symlinks for every single folder? Best, Frederik >>>>> ls -lA /var/mail/public .user01 -> /var/mail/user01/Maildir
2011 Sep 09
1
How to get rid of sub-folders ?
Hello, OK, no answers on my previous e-mail. I'll rephrase it. How can I get rid of subfolders on a users' tree-like structure on dovecot ? Which file must I "touch" ? TIA, s. ? ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis
2013 Apr 06
1
autocreate mailbox but no sub folders
Hello, We have been using lda_mailbox_autocreate to avoid to intialize empty mailboxes upon account creations. This does the job allright except that dovecot-lda is also allowed to autocreate sub folders which is a problem when using addresses extensions (adress+folder at domain.tld). It's easy for a malicious user to flood a mailbox with tons of subfolders. Is there a way to tell
2006 May 18
3
access to an ApplicationController property from a view
Hi there, How is it possible to get access to an ApplicationController property from a view? Consider this (simplified) situation: class ApplicationController < ActionController::Base def folder_id @folder_id = params[:id] return @folder_id end end class FolderController < ApplicationController def show @folder = Folder.find_by_id(folder_id) end end So far,
2015 Mar 02
2
Weird sub-folder error
Hi, I?m running dovecot 2.2.13 and I ran into a weird problem. A user migrated his mailboxes by letting users copy them from their old server to the new one through their MUA. All that went fine except for one very weird instance. The user is running Outlook 2010. The user has a sub-folder structure which dovecot places as dotted names beneath the Inbox. (E.g. Maildir/.my.sub.folders). After
2006 Jan 16
4
Question about self and private
Hi! There''s something I don''t understand yet about static/private methods. I hope someone can explain... E.g.: class SayHello def hello(who) puts "Hello, " + who + "!" end def self.say(words) puts words end end hello = SayHello.new hello.hello "World" : Hello World! hello.say "hi" : Error SayHello.say
2006 Jan 11
3
Just update 1 field
Hi All, I wonder how I can get rails to update just one field when I do Myfile.save. Right now this happens when I do a Myfile.save: UPDATE myfiles SET `folder_id` = 0, `filesize` = 1, `data` = ''2f7573722f6c6f63616c2f6d ... f7061636b65743d33324d'', `user_id` = 0, `date_modified` = ''2006-01-11T23:33:57+0100'', `filename` = ''mysqlscripts.sql''
2004 Oct 04
1
Problem with incremental backup - copies instead of hard links
Hi there, I'm using this version of rsync: localhost:~ mzehetle$ /usr/local/bin/rsync --version rsync version 2.6.0 protocol version 27 Copyright (C) 1996-2004 by Andrew Tridgell and others HFS+ filesystem support for OSX (C)2004 Kevin A. Boyd <http://rsync.samba.org/> Basically incremental backup (--link-dest option) works with a destination on my local volume but not with a
2007 Feb 28
5
How to use find_options in multi_search
Hello everyone, I''m using multi-search to search in some attributes of two classes. One of the attributes is the id of the customer. For each multi_search I want to do a give the id of the current customer as a parameter. This should only return results for the given customer. My current code looks like this: Folder.multi_search(@search_query, [Myfile]) I noticed in the API you can
2013 Apr 08
5
How to see folders/subfolders/emails through imap
Hello all, I am trying to do something very simple - at least thats what I thought. I have some fs, it contains folders and subfolders with email files ordered like maildir. Now I try to set up dovecot on top simply to let some imap account watch these email files. But I cannot see any folders at all. I can create new folders and see them, but I cannot create subfolders as subdirs like
2012 Nov 16
4
Folder layout after Cyrus to Dovecot migration
# dovecot --version 1.2.15 We're trying to migrate a server from Cyrus to Dovecot, and we're mostly there. On Cyrus, the folder layout in the MUA is: INBOX subfolder subfolder ... Sent Drafts Queue Trash Users cannot create sibling folders to the Inbox, only subfolders (and sub-subfolders, etc). We've replicated that with:
2013 Nov 08
2
Question about folder sharing
Hi, I run dovecot (2.1.7) on debian wheezy in conjuniction with postfix, samba4 (as ldap backend) and sogo. I configured folder sharing but have an few issues. With my current config users can share the inbox and other folders. If the acl allows creatings subfolders this does work for all folders beside inbox. What i want to archiev is the following: If an user shares his inbox, others
2008 Sep 06
1
ACL plugin: k permission and sub-subfolders
Hi, I'm trying to disallow the creating of subfolders for some special folder for all users. Using ACL plugin for this seems to work at first glance but is not a full solution or is buggy as it allows the creation of sub-subfolders. I'm using the following ACL and namespace separator is "/": $ cat folder owner lrwstie Note: no "k" permission ("k" =