Displaying 20 results from an estimated 600 matches similar to: "file_column"
2006 Jan 05
7
Multilanguage problem, need help
hey,
i use http://mir.aculo.us/articles/2005/10/03/ruby-on-rails-i18n-revisited
then i have nl_BE.rb, de_DE.rb, en_US.rb as translation files.
this works all fine when i have normal characters, but i have one problem
when i have wierd characters like ? ? ? (mostly in french), then i get japanese
charachters on my site
i use utf8 for my database and i set this for each def in my controllers,
2005 Dec 21
10
Globalize plugin
Is there any working example on using the Globalize plugin?
It could help alot
Thanks in advance
--
Alexander Antonakakis
email: alexis-+Saq9+MPrF0@public.gmane.org
2006 Mar 23
5
Filecolumn storage location
Hi,
I am using file_column for some image uploading. I want to have all
the images stored under one root which I have managed by setting the
:store_dir option as below.
file_column :filename, :store_dir => File.join(RAILS_ROOT, ''public'',
''images'', ''products'')
So, my images get uploaded to:
/public/images/products/<primary_key>
2006 Mar 02
2
url_for_file_column not returning correct path
I added this test towards the end of the included
file_column_helper_test.rb that shipped with the file_column plugin:
def test_url_for_file_column_different_root_path
Entry.file_column :image, :root_path => File.join(RAILS_ROOT,
"public/files")
e = Entry.new(:image => upload(f("skanthak.png")))
assert_match %r{/public/files/entry/image},
2005 Dec 23
6
file_column and HABTM
I have several models that will be using file_column by way of the
"Picture" class (HABTM). Right now, all pictures are stored in:
public/picture/image/1/filename1.jpg
public/picture/image/2/filename2.jpg
Is there a way I can dynamically define the "store_dir" based on the
model? For example, if I have "user", "product" and "place" models all
2006 Mar 08
8
New ajaxy CMS on Rails: adminpages
hey, i''ve created a basic content management system using rails and
scriptaculous. I posted a first version last week, but I heavily
extended it since then.
Features:
Pages are arranged in a sortable tree (sortable by drag and drop)
Pages have "nice" URLS (no /index?articleid=97361496 or something)
Cacheing on page basis
every page has a layout with a number of columns
page
2006 Feb 20
2
file_column: changing default store_dir
File_column plugin is great. I need to change the default :store_dir
from the dynamic "model_name/attribute_name" to an equally dynamic
"client_id/app_id/model_name/attribute_name". In my model I have:
class Component < ActiveRecord::Base
belongs_to :component_type
belongs_to :component_group
breakpoint
file_column :content,
:magick => { :versions
2005 Jun 10
3
change windows ADS passwords from linux box
I have samba clients authenticating to Windows ADS through winbind.
All works perfectly, but I don't how to enable my linux users to change
their password (on the windows machine) from the linux box.
Although there is a great deal of documentation on the internet, I could
not find anything specifically to this...
A small howto on what smb.conf/pam/nsswitch/xxx parameters are required
to
2005 Dec 20
3
File Column Directory Add another layer
Quick Question. I understand how to change the default path to
something other than public but what if I wanted to add another
directory into the equation. I want to upload an image into the
following structure:
/public/image/userid/imageid/test.gif
So basically I want to look up the userid in my users table and put
all the images for that user in the same directory. So i have a one
2006 Jan 09
7
File_column Dynamic directory
I asked this question earlier and did recieve an answer but I am not
sure Ifully understood the answer as I am getting all sorts of
errors when trying to implement.
Basically I want to add a layer to the path for my files. I have the
following set up in my model class:
file_column :image,
:store_dir => :dynamic_dir
def dynamic_dir
2006 Apr 14
1
file_column and custom store_dir
I''m using file_column to store mulitple versions of an image in a custom directory "images/artwork/" with the :store_dir option.
This is working fine for uploading and storing the images, but whenever I try and access the images with the url_for_file_column helper it keeps generating the default path. I thought it would replace this by default, but it doesn''t seem to.
2007 May 30
4
difficulties in rid mappings in 3.0.25
I use the sernet samba packages on debian sarge and have problems after
upgrading to 3.0.25 with rid mappings.
My rid configuration for 3.0.24 looks like this
idmap backend = rid:ISC=500-100000000
idmap uid = 500-100000000
idmap gid = 500-100000000
after updating to 3.0.25 I get a core dump of winbind (log at the end of
the post) with these settings.
I tried to use the new configuration
2005 Aug 30
2
idmap_rid / roaming profile permissions / NT AUTHORITY\SYSTEM
I'm struggling with roaming profile permissions as I can not "see" the
NT AUTHORITY\SYSTEM account.
I have:
-samba file server with acl 3.0.14a
-authentication with winbind and idmap_rid against Windows 2003 ADS
-using "default domain" in smb.conf for winbind
The roaming profile directories are on the samba machine under the users
home directory. As noted on several
2005 May 20
1
Winbind/ads/pam auth
Hi list
Got an odd "problem" here.
But, ive followed the howtos etc getting pam authentication to work etc
Ive just setup imap, the domain username is "test"
When I run getent passwd im returned with
DEV-DOMAIN+test:x:10012:10023:test test:/home/DEV-DOMAIN/test:/bin/false
When I logon onto the windows 2k3 AD as test, it all logs on, sees the Home
drive on the samba
2006 Feb 02
4
Newbie - samba 3 as PDC
Dear The Expert,
I am very new with this, I don't understand why my Windows 2000 Prof PC failed when trying to register as member of domain "LINUX".. but I am able to login by using Windows 9x client , below is my /etc/samba/smb.conf
I need advise.. thanks a lot in advance
[global]
workgroup = LINUX
server string = Samba Server
printcap name = /etc/printcap
load printers = yes
2006 Jul 03
1
staying in control over the case in file_column plugin
using file_column plugin, if I upload IMG0001.JPG, I get files similarly
named IMG0001-thumb.JPG, etc. but if I upload img00002.jpg, I get files
img00002-thumb.jpg, etc.
This is tacky in terms of my counting on a consistency when implementing
views.
My inclination is to start hacking away at this section of
file_column.rb:
class PermanentUploadedFile < RealUploadedFile # :nodoc:
def
2005 Nov 18
10
[Request] file_column configurability
I wasn''t sure where to email this request, so I am hoping the author of
file_column actually sees this. I was wondering if there were any plans to
allow some configurability in the file_column plugin. By configurability I
mean allowing the developer to define which table column is used as the
unique identifier when creating image folders. Right now it seems like it
uses the ID of the
2008 Mar 21
3
Problem with user regsitration and ldap on SVN version
Hi guys,
I'm trying to use Asterisk with LDAP integration.
I created some schemas and it seems to work fine for sip.conf replacement.
When I try to register a softphone to test the service, it seems ok from the softphone point of view (user registred) but when I do a
"sip show peers", no one is registered (nor sip show subrscriptions, users...)
I put my Asterisk on full debug and I
2006 Jan 17
0
file_column with both root_path and store_dir
I store my file_column database outside of my RAILS_ROOT.
It seems to work in real life, but not in tests.
In the tests, I can''t set both the root_path and the store_dir. In
tests, setting the store_dir option will override the root_path
option. The only way for root_path to work is to remove store_dir. I
think the problem is in file_column.rb on line 22:
options[:store_dir]
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post.
I am trying to configure file_column plugin so that it stores the images
in a directory completely outside of RAILS_ROOT.
I have no problems in storing the files by setting :root_path option.
But I can''t get to display these images using ''url_for_file_column''.
What I get instead of the image is