similar to: Instructions required for RailsCron

Displaying 20 results from an estimated 5000 matches similar to: "Instructions required for RailsCron"

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
2006 Feb 08
2
How to install RailsCron?
Hi, I would like to start running a background procedure once a user logs in to his account on the website. For this I am considering using the RailsCron object. However, I am not able to download it. I am new to Rails. Can someone give me the excat command I should use to get RailsCron? Can someone suggest a better way of running a procedure in the background? Thanks -Yash -- Posted via
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 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 07
3
RailsCron 0.1 plugin
I, like many of you, have been searching for a good way to handle running long processes in Rails. So I rolled my own solution. I really want feedback! (I''ve tested this on very simple hello world examples, so don''t use it on anything production yet) . Grab the plugin: http://opensvn.csie.org/rails_cron Here''s the README: OVERVIEW ======== RailsCron is a way to
2006 Feb 23
1
RailsCron: ''every'' in background
Got another question. It''s unclear to me what "every" means in the background function and how it relates to the RailsCron.create "every": >From README: RailsCron.create( :command => "Object.do_something()", :start => 2.minutes.from_now, :every => 12.hours, # default: 1.day :finish =>
2006 Jan 28
1
RailsCron 0.2 questions
Hi all, I''ve set up RailsCron to send email reminders on a daily basis. My dev environment is Rails trunk on Debian Sarge, lighttpd running as a regular user. I''m having two issues: 1) When I run "rake cron_start", I get rake aborted! undefined method `blank?'' for "":String The "blank?" method is provided by Rails, so I''m
2006 Feb 24
1
RailsCron: Trigger one time
Hi Kyle, Thanks for your help so far. Now that I have it up and running, I''ve some behavior questions. I want to trigger an event just one time at a future time. I''m using some of your sample code to try this, but the behavior of some combinations of start, every, and finish behave in some unpredictable ways. 3 class RailsMaintainer 4 include ActsAsBackground
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 May 10
2
Circular dependency issue in startup
Hi all ! I am adding observers to some model objects. One of these uses RailsCron. RailsCron adds a class method to ActiveRecord::Base. Unfortunately, during the initialization phase, plugins aren't yet loaded, so I can't setup my observers in config/environment.rb, as suggested by the comments. What's a poor dev to do ? At the moment, I have fallen back to this: # Require all
2006 Apr 04
1
Running external scripts that know about a minimal Rails env
I''ve been exploring the options for running external scripts from the Rails env. The list I have is this: Cron ScriptRunner (in the script/ dir under rails projects) RailsCron The most likely candidate for me is the ScriptRunner because my external script needs to know about a model which it has to save to the database from my Rails environment, and it needs to start running as soon
2006 Feb 23
5
Q: Where to put a periodic updater?
Hello, I need to put a script in place for updating a local database with a remote resource periodically. It should be started alongside the server (or inside it, whatever) and be run as long as the server running my rails app is up an running. Any thoughts on how to accomplish this? I have thought of editing the environment.rb file and placing the call to the script trigger there, but I wonder
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 Apr 05
7
Regex for splitting string
Hi We have a search website where the user can type in individual words separated by spaces and/or phrases enclosed in single or double quotes. We are looking for a way to obtain a list of words and phrases from the search string. Can someone help? Thanks, Yash -- Posted via http://www.ruby-forum.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 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 Mar 01
6
How to retrieve attributes from HABTM?
We have tables Users and Communities linked by has_an_belongs_to_many. The join table Communities_Users has additional fields [ is_active, is_blocked, join_date] etc. These are populated using @user.push_with_attributes(:is_active => true,...). Later on how do we update or retrieve the attributes in the link table for a given user or a community with doing it explicitly using SQL? Thanks,
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