Displaying 20 results from an estimated 6000 matches similar to: "Which internationalization plugin to choose?"
2006 Jan 27
3
Problem setting multi-value cookie
I''m trying to set a multi-value cookie but for some reason it''s not
working. Any help would be appreciated.
cookies[:user] = { :value => {:email=>params[:login][:email],
:passwd=>params[:login][:passwd]}, :expires => 30.days.from_now, :path
=> "/login"}
--
Thiago Jackiw
2006 Feb 23
12
Showcase On Rails CMS v0.1
I built out a simple CMS for websites that rely heavily on portfolios.
This covers graphic and web designers in particular, but also other
people with stuff to show off. It''s really easy to customize
progressively, so that some people will only modify CSS, but others
will dig deeper into Javascript behaviors and the Rails view code.
Check it out at http://showcase.kylemaxwell.com/
SVN
2006 Feb 04
5
file_column + form_remote_tag
For my weekend project, I''m going to get form_remote_tag and
file_column playing happily together. According to my research, no
one has done this yet. If you happen to have tried this, and have
some workable code, send me an email. I''d rather not duplicate the
effort.
Thanks!
--
Kyle Maxwell
Chief Technologist
E Factor Media // FN Interactive
kyle@efactormedia.com
2006 Jan 09
5
form with more than 1 file upload field saves 0 byte file for 1 file field
Im using the file_column plugin to upload files from my application. The
problem I am encountering is that I have a form with 2 file upload fields
and when I submnit that form with files selected, I would get a message from
the browser(Firefox) saying that a script on the page is taking a long time
to execute and whether I want to cancel it or continue. Whichever option I
choose, only 1 file(PDF)
2006 Feb 07
4
RailsCron 0.2.2, please update
I updated RailsCron to fix some threading issues with ActiveRecord.
Please update if you were on 0.2.1. Also, I am still working on a
good unit test strategy (its tricky because I would think that the
tests must occur over a lot of time), but haven''t had/made time to
give it its due. If you have suggestions, please let me know.
--
Kyle Maxwell
Chief Technologist
E Factor Media // FN
2006 Feb 12
7
form_remote_upload plugin
form_remote_tag does not support the input type=file. This is due to
javascript security limitations. I created a plugin that modifies
form_remote_tag so that if you pass it the option: :html =>
{:multipart => true}, it will submit via an iframe, allowing you to
upload files. It works nicely with file_column :). Currently, it
only works with RJS templates (no :update option), and I only
2006 Jan 09
3
Chopped files when downloading from database
I have some files stored in db. When I try to download these I only get
65535 bytes from the database even if the file is a lot bigger. Is it a
Rails setting I''ve missed or a database setting? Anything else?
Using Rails 1.0, WinXP and MySQL4.1
/Marcus
2006 Jan 25
24
RailsCron 0.2 plugin
I received feedback from some of you, saying that it would be cool if
RailsCron was even easier to manage. So I implemented a graceful
start/restart inside of the plugin''s init.rb. If you don''t like it,
comment it out and send me the feedback.
Also, I finished an update to RailsCron that allows you to attach
asynchronous processing methods to your ActiveRecord models. i.e.:
2006 Jan 12
5
file_column preview in multistage forms
i have a 2 step form which contains 1 file_column field.
The second form is just "This is how your post will look" kind of form
and the user can click Edit (to take them back to form1) or Submit.
If the user clicks edit it takes them back to the first form with
fields populated. I have it working with all text fields, I just dont
know how to do this with file_column field (showing the
2006 Feb 14
7
Action when database changes
Hello,
Is it possible to trigger an action in a controller when
a table from database changes?
I thought about using an utility like cron (railscron) to
check every, e.g. 2 s, if the table changed, but I am wondering
if there is a solution a bit more ''elegant'': to trigger an action
exactly when the change is made.
Best regards,
--
Kuba Nowak
2006 Jan 19
3
-517611318:Fixnum ... WTF?
I''m getting occasional errors that look like:
Some method called for -517611318:Fixnum
The method is constantly changing, and this error happens on ~5% of
the page loads on my Mac Tiger development box. It''s happening on
Ruby 1.8.2, and 1.8.4 compiled from source. I haven''t seen it on my
Linux production boxes. I was wondering if anyone had seen this
before?
--
2006 Feb 20
5
RailsCron: error message
Hi,
I''m trying to use RailsCron but keeping getting an error when I try to run
it. I''m a beginner, so please use small words :)
-bash-2.05b$ rake cron_start
(in /home/jake/rails_sites/testsite)
Syntax error: "&" unexpected
The little bit I know about my environment:
- RailsCron installed as a plug in (not gem, cause I''m on a shared host)
- Debian Linux
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 Jan 17
5
file_column mangling URL
Hey,
I''ve gotten file_column to upload a file, drop it in the dynamic
directory, but I can''t display the image, the directories repeat
themselves:
My model:
class Person < ActiveRecord::Base
file_column :image_url
In my view:
<%= image_tag url_for_file_column(''person'', ''image_url'') %>
HTML generated is this:
<img
2006 Mar 28
5
Is it possible to upload file with form_remote_tag?
I have tried to upload a picture file with file_column plugin and
form_remote_tag, but no success.
When I do request.params.inspect it shows null for picture parameters.
With normal form the file uploads nicely, so is it possible to upload
file with form_remote_tag?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 10
7
Can only render or redirect once per action - why?
I ran into this error message a quite a few times since my app requires
branching to different pages from the same action... say using a switch
statement. Ofcourse I found that you can use multiple redirects or renders
if you do
render :action => ''new'' and return false
I hate to code something I don''t understand fully. Any explanation of this
will be greatly
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
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 Aug 05
1
TLS support for ActionMailer!
This plugin lets you send mail through SMTP servers (like gmail) that
require a secure connection. All you have to do is install the plugin
via the standard methods, and set the following line somewhere useful
(like environment.rb):
ActionMailer::Base.server_settings[:tls] = true
Plugin URL:
http://svn.kylemaxwell.com/action_mailer_optional_tls/
--
Kyle Maxwell
Chief Technologist
E Factor
2006 Jul 07
7
file_column repository broken?
I really want to try out file_column but the repository seems to be down
for me. I added it to my repository list and script/plugin is unable to
see anything in it.
I downloaded an archive from the website but it is not clear to me which
files need to be installed to which subdirs of my RoR project.
Anyone else having this issue with the repository? I am able to see
other repositorys no