Displaying 20 results from an estimated 5000 matches similar to: "Restricting access to files uploaded by file_column"
2006 Mar 29
1
Fixing output_compression for Rails 1.1
With Rails 1.1 the output_compression[1] plugin was broken.
Once I upgraded to 1.1, I had to tweak it a bit to make it work.
Mainly it''s removing the code dealing with component requests, as
that''s part of rails now, and changing one function call.
Get the modified output_compression.rb file from
http://devblog.famundo.com/output_compression.rb and give it a try.
It''s
2006 Apr 24
3
Regex in HTML
So, I''m trying to write a nice bit of regex to handle finding anchor tags in
a bit of html.
This is what I''ve got....
/<[aA][^>]*>[^<]*<\/[aA]>/
I''m planning on using this with a gsub!.
Here is what it has to do....
<html><a href="http://stuff.com" class="link">Anything in here.</a></html>
As you can
2006 Apr 06
3
Deploying with Capistrano via cron
I''m attempting to auto deploy a rails application to a development
server periodically during ongoing development. I''ve setup ssh keys
to allow the proper user auto login permissions, but have ran into 2
issues.
1. When the script is run from a cron job as the same user as I
currently manually deploy from I receive an error when reaper tries to
execute - "can''t
2006 Jan 31
3
Lost in routing
I''m trying to create a modules based system where my controllers are
all under modules. So the structure looks something like:
app/
controllers/
message/
news_controller.rb
email_controller.rb
library
books_controller.rb
pictures_controller.rb
home_page_controller.rb
Each of those controller has
2006 Jun 15
13
Best Approach to a ''Down for Maintenance'' Page?
What is the best way to implement a ''Down for Maintenance'' page across
your Rails app?
Ideally I would like to have a button in my admin section that toggles
the display of a ''currently under maintenance'' page to every public
request to the app (possibly with some dynamic content like estimated
down-time)
except for: -
- requests from a specified IP
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 Sep 19
2
[OT] SVN: Anybody use BDB?
I''m moving my Subversion repository to a new server. The old server uses
Berkeley DB/Sleepycat and if memory serves, it was a lot of effort to
set that up -- so I think I''ll try FSFS. Does anybody use BDB and prefer
that over FSFS? Or had any problems with FSFS? (I never had any problems
with BDB, performance or otherwise, btw.)
Thanks,
Joe
--
Posted via
2006 Jun 19
4
Oh, Don''t Forget... launches!
Just wanted to send a quick thank you to the contributers on this forum.
Today, with the help of many around here, I launched ohdontforget.com!
Ohdontforget.com allows US visitors to schedule sms text messages for a
specific date and time, for free.
Although I have officially, launched, there is still room for
improvement. I used this project as a learning opportunity for Ruby on
Rails and
2006 Feb 17
4
Need Help with Globalize Plugin
Hi everyone,
I''ve been playing around with the Globalize plugin for some days now
but I can''t seem to make it work properly with my models. I''m currently
using Postgres 8.0 for the database and needed to make some
modifications with my migration file that was posted by Jake Morrison in
the Globalize wiki...
2006 Mar 26
10
How to delete a uploaded file with file_column plugin?
Hi,
sounds somehow stupid, but I can''t get rid of my files that I uploaded
into my application via the file_column plugin. Any suggestions?
Cheers
Thomas
--
Posted via http://www.ruby-forum.com/.
2006 Jun 22
18
Ruby on Rails Live CD
I''m pleased to announce the initial release of the new Ruby on Rails
LiveCD Linux Distribution. http://www.railslivecd.org
The RailsLiveCD offers most of what an average Rails developer needs
right out of the box! That includes :
Ruby 1.8.4
Rails 1.1.2
Capistrano 1.1.0
Mongrel 0.3.13
Rake 0.7.1
Subversion
MySQL 4.1.12
MySQL Administrator
RadRails
KDevelop
Kate
and many many others!
2006 May 12
3
file_column error
Hmm, I''m using file_column and going by this tutorial, the files upload
ok and I can see the fields updated in the database, but I am getting
this error:
"Trying to access file_column, but primary key got lost."
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
2006 Jan 09
5
file_column content type
is there a way using the file_column plugin to enforce a certain
content type based on regex (i.ie, /^image/) and/or filesize (150k)
?
thanks
adam
2007 Mar 27
18
Textile Editor Plugin v0.1
The Textile Editor Helper (TEH) is a Javascript-based text formatting
toolbar that will be added to all of your text areas that utilize the
TEH feature. TEH was developed to provide a more WYSIWYG-ish option
for users of our Rails CMS called slate while still letting us use
Textile.
======================
= So what are the features?
======================
These are a list of the current features
2006 Jun 05
1
file_column permissions
this is getting frustrating...
i installed file_column without a hitch for the first time to just play
around with. using the exact same steps as before, i try to use it with
one of my actual applications, and i get "permission denied" errors. i
figure there might be some conflict with my application so just for
kicks i do the exact same thing i did the first time to test
2005 Dec 26
1
file_column + restrictions
Hey All. Season''s Greetings.
Can anyone here elaborate on how one can restrict the size of image
uploads using file_column/rmagick? I''d like to be able to, in my
controller/model, check the size of an uploaded image, and if it''s size
on disk exceeds x amount, I''d like to indicate to the user that this is
a no-go and kill the temp file.
Any ideas?
Thanks
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi,
I''m on Windows and getting the following error while trying to use
file_column with RMagick,
uninitialized constant Magick
C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''
#{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in
`file_column''
I installed file_column by
2006 Jan 17
2
file_column plugin and instance variables
To make file_column work I have to copy my local variable back to an
instance variables like this:
<% for product in @products
@product = product %>
<div class="catalogentry">
<%= image_tag url_for_file_column(''product'', ''image_url'') %></p>
This is needed because file_column specifically looks for the instance
2006 Feb 13
3
file_column: uninitialized constant Magick
I am getting this following error when using file_column with RMagick:
uninitialized constant Magick
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:200:in `const_missing''
./script/../config/../vendor/plugins/rails_file_column/plugins/
file_column/branches/kyle/lib/file_column.rb:621:in `file_column''
2006 Jan 04
4
file_column
I use file_column and it works fine.
I tried to change the store_dir to a the path I want my files to be
stored and not the default.
I stored some images fine. But when I try to reach my images it seems
like file_column uses the model_name/attribute_name on the image and not
the store_dir I used. How can I change this ?
Thanks in advance
--
Alexander Antonakakis