Displaying 20 results from an estimated 1000 matches similar to: "unit tests executed for every page load ?"
2006 May 15
4
Anyone got a copy of File_Column trunk
Anyone able to post a copy of the svn trunk of file_column? The
website''s been down for the past few days, and I''ve only got the last
release (0.31, I think), which is missing a whole load of goodies.
Tx
2006 Apr 11
1
Implementing Optimistic Offline Lock - How ?
I understand that ActiveRecord supports the "optimistic offline
lock"-pattern through magic fields (created_at, updated_at). However, a
scaffolded CRUD-Controller doesn''t generate the necessary code to
support this feature (the model state gets lost between two action
calls).
What is the best practice to prevent users from overwriting objects with
outdated data ?
--
2005 Oct 04
3
[Q] file_column help needed
Hi all,
I''m trying to use file_column to upload a picture but
I''m getting the following error:
"cannot convert nil into String"
caused by the last line in
FileColumnHelper::url_for_file_column(object_name,
method)
url << object.send("#{method}_relative_path")
I don''t have any images uploaded for existing entries
so does this not
2006 Jun 07
9
Unobtrusive Javascript for Rails
I made a brief post on here the other day about this and now I can
proudly present the initial release of our unobtrusive_javascript
plugin for Rails. We''ll be working with Dan Webb of Vivabit to roll in
much of the functionality in his own as-yet unreleased
unobtrusive_javascript plugin into a single plugin.
This is essentially a preview release and probably not suitable for
use on a
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
2006 May 15
5
Finding out the file attributes in FileColumn models
Is there a way to find out the attributes that have been passed to
file_column in models? I''ve looked through the source and it seems that the
file_column methods are generated at runtime but there''s actually no class
or instance variable that hold the file attribute.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 09
3
File_Column Development Dead?
I''m curious if anyone knows if development on the file_column plug in is
continuing? I''ve seen some SVN commits from awhile back but no binary
releases.
Did Sebastian speak at Canada on Rails? Anyone catch that?
What is the future of file_column?
2006 Mar 02
2
How to get mime extension with file_column
Is there a way to get the MIME extension of a file_column field?
Here''s what I want to do (look for comment in before_save method):
class ProductFile < ActiveRecord::Base
belongs_to :product
file_column :file_name
def before_save
self.file_type = # something that returns the MIME type (e.g. image/jpeg)
end
end
TIA
2006 May 19
1
FileColumn
I''m using Windows and Postgres 8.
I installed RMagic gem thingy and FileColumn plugin ok.
I followed instructions exactly as directed on FileColumn web site which
is very straight forward:
---model
class My_model < ActiveRecord::Base
file_column :column_for_file_name
end
-----view -upload form--set to mulitpart
<%= file_column_field "my_model",
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>
2005 Dec 31
4
How might I use file_column for incoming email attachments?
I''m writing a ''Mailman'' model that catches emails sent to my
application (kind of like backpack, I think). The trouble is that
I''d like to save image attachments in the same was that file_column
saves them--in fact, I''d really like to use a simple assignment like
photo.image = attachment to save the image in its proper place.
However,
2006 Jul 30
1
FileColumn - Validate Before Saving
file_column is great -- but I need a way to run through the validations
(ie: validates_file_format_of) before saving. That is, when a user first
uploads an image it is displayed in the view but not ''saved'' until they
click the ''Save'' button on the form. I want to display an error
message/disable the ''Save'' button if the file they just
2005 Dec 29
3
FileColumn Help
i''ve changed store_dir to :store_dir => "public/uploads/users/pictures/"
that works great for uploading, but url_for_file_column is still
outputting:
/user_picture/image/id/name.jpg
how do i make url_for_file_column output the correct url?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 01
4
Saving images in shared directory w/ Capistrano/SVN?
Hi all,
I''m using Capistrano and SVN to version control and deploy, but I''m not
sure what to do about my images directory. I use file_column and
RMagick to save images to the disk under a model called "Image", and
they''re saved in public/image/... etc.
Each time I deploy a new version, my image folder doesn''t exist anymore.
I don''t want
2005 Dec 27
1
filecolumn to database
Hi,
I''m using filecolumn to upload a file to mysql blob :
_form.rhtml : file_column_field "entry", "attach"
model (rb file) : file_column :attach
How can I update controller create function to insert file in database ?
redefine model save function ? Someone has a sample source ?
Regards,
Fabian
2006 Apr 17
8
file upload
This is probably me having an issue with the mvc way of living.. .I''m
used to perl/php scripting...
I''ve got a photo blog I''m making... and in past iterations of this
website, I''d just name the photos after the id of the entry. For
instance:
/photos/id.jpg
/photos/id_thumb.jpg
However, I''m having trouble finding an easy way to do this with rails.
2006 Mar 20
3
Where does it come from?
Below every page in the browser i get:
"Loaded suite dispatch.cgi Started Finished in 0.000225 seconds. 0
tests, 0 assertions, 0 failures, 0 errors"
I''m not sure if i changed something or someone else did it, but now i
don''t know how to get rid of it. It has something to do with testing,
right? How to switch it off?
--
Posted via http://www.ruby-forum.com/.
2023 Apr 21
2
Samba shares and samba server residing on different physical machines
On 21/04/2023 15:11, E Kogler via samba wrote:
> Hi fellow Members!I'm Systems administrator at a school using SAMBA 4 as AD DC.
> As you know, WIN11 is at the doorstep and my "old" Samba4 Server (4.9) doesn't serve Windows Servers (Server 2019) very well,
> e.g. the latest issue is that the domain administrator cannot access the GPO's or other informations from the
2023 Aug 23
1
Samba shares and samba server residing on different physical machines
Dear List,finally my new Samba 4.17.9 is up and runnig on the desired machine with all the FSMO roles transferred and the old DC demoted.
What I want to know now is how the smb.conf on my new DC should look like.Is it only copy the smb.conf used so far to the new machine, does it stay on the old machine ??
How do i write the path for the shares ?How are my users transferred ? ( Has it been done
2006 Jan 16
3
file_column error
Hi, Sebastian
I downloaded FileColumn plugin and love the concept. But when I
tried the example listed on the plugin web site, I got the following
error:
NoMethodError in Entry#new
undefined method `file_column'' for Entry:Class
My environement is Red Hat linux 9.0 with mysql 4.1. I installed
file_column under vendor/plugins. If I run "ls", I get the following