similar to: How to create a background task?

Displaying 20 results from an estimated 4000 matches similar to: "How to create a background task?"

2006 Apr 02
2
Problem with edge rails
Hello, When I am trying to run rake migration tasks, I get the error as shown below. I am using ruby 1.8.4 and edge rails. What am I missing or doing wrong? C:\rails\temp1>rake db:migrate (in C:/rails/temp1) rake aborted! no such file to load -- rails_version Thanks for your help. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at:
2006 May 18
7
Ruby Before Rails
As I, like many people, are coming to ruby in the rails era, I''m curious about how Ruby Web Dev was done prior to rails. Any veterans want to share their insights? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/20cde24d/attachment.html
2006 Jun 19
2
Autocompleter enhancement feature request
Hello, I have created a ticket for an enhancement of the autocompleter to show the options immediately when the field gets focus. Right now at least one character must be typed for autocomplete to kick in. http://dev.rubyonrails.org/ticket/5435 I have also made some code changes directly in the script Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
2006 Feb 28
1
Cache Magic field for totaling
Hello, Rails provide counter cache field for associations, I want a similar cache for totaling up values (say account_balance = sum_of_deposits - sum_of_withdrawals). I was wondering if rails, already has another surprise in store for me, or is there any plug-in or how-to for doing these kind of things. Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read the
2006 Aug 10
1
IMPORTANT: Rails update 1.1.6
for those who didn''t read it somewhere else: the bug being adresseb by 1.1.5was not completely fixed, so now theres another security update: http://feeds.feedburner.com/~r/RidingRails/~3/10954980/rails-1-1-6-backports-and-full-disclosure anybody using engines, dont update since this update will break the plugin, more info for fixing the bug in this case also in the blog. -- Michael
2006 May 15
3
Page hit counter?
Hello all, Yet another "don''t reinvent the wheel" n00b question: Is there an ''official'' page hit counter plugin/code snippet/whatever? I would need something like this: - It is possibility to set a constant timespan (say 5 hours). - On every page hit, save away @request.remote_ip and Time.new - The counter gets incremented only if the same IP was here
2006 May 14
4
script/console on windows
Hiall, When I try to run script/console from a windows command line like f:\rails_app\ruby script\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require''
2006 Mar 08
4
Creatulator: Before I go and make it myself, does this exist...
Basically, on thing that annoys me to no end is that I am constantly having to add things to my model that could just be reflected out by the active record. I use PortGres exclusivly, and I know that there are ways to ask the database things like, "what is the primary key" "what relation does this foreign key belong to" etc... So what I am about to go and write myself is a
2006 Aug 04
5
image_tag + ActionMailer
Hi, Any idea why image_tag doesn''t work within an email template? I''m trying to generate the URL for an image and I''m getting the following error. undefined method `request'' for #<Mailer:0x6a719e0> I''ve been able to use link_to but no luck with image_tag. I''ve seen a similar post to this in the list but no one has posted a response.
2006 Aug 11
5
Why does no one like render_component?
Maybe I''m missing the point? Lets take for example albums of pictures. If I have a scaffold for each, and I''m showing an album, what if I want to list all of the pictures that are in the album? Surely, I''d want to call the List action in the picture controller. render_component would do this perfectly. But we''re told not to use render_component. So
2006 Aug 07
7
mysql Date field not getting set correctly
I created a simple test to try and pinpoint my problem but nothing seems clear to me. I created a Thing model with fields { id (INT), date (DATE) } now when I try to create a new "thing" the date does not get stored, and no errors are reported. @myNewThing = Thing.new(:date => "2006-08-07") @myNewThing.save this results in a new record with a date of
2006 Aug 10
11
Document Management System in Rails
Hi Is anyone aware of any Document Management System in Rails. Googling didn''t help me find any Rails based solution. The DMS I need, need to have the following feature apart form the usual ones. 1. Version control of documents. 2. Tracking version control for each group of users independently from the other group . These groups may share the same document name but may have different
2006 Mar 08
2
RJS - page object in helpers?
Hello, I am using RJS and Edge Rails and I was wondering if the page object should be available in helpers also. For example if I have a helper function def update_flash_messages page.replace_html ''flash_messages'', (show_flash_messages :textilize => true) page.visual_effect ''flash_messages'', :appear end and then in my RJS files I call
2006 Jan 23
3
running a background task/thread in rails?
Hi, I am new to ruby and to rails, but I like what I see so far. I have been working on a web app in java (servlets and JSPs) that, based on a request from the user, kicks off a thread in the background to perform a task (puts messages in an MQSeries queue). The thread object is stored in the session and I then allow the user to control the task from the browser(like stop it). Is the same
2006 Mar 07
0
Extend user table/create new table, best practice?
Hello, I am new to arena of web development and am using the user engine. I want to store few more details about the user, so should I extend the user table provided by the user engine and add columns to it, or should I create a new table. I would like to know the best practice in this regard, and opinions of other web developers. Thanks. -- Surendra Singhi http://ssinghi.kreeti.com,
2006 Jun 09
2
Textile editor
Hello, Is there any editor for textile? Something which has buttons, and will auto insert textile code for marking user inputs. (If possible displays a preview also.) Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds
2006 Apr 14
1
Configuring rails app on web server
Hello, I am newbie in configuring apache and deploying web applications, and am trying to install rails 1.0.0 application on Godaddy web server. Lets say the application is named `demo'', and it will be present in a folder called `demo'' on the web server. The web server in addition to hosting the rails application will host many other static pages in other folders. When the user
2006 Apr 25
0
function parsing different sql options
Hello, Is there any function which will parse different sql options and add them to a sql query? I found this `add_limit_offset!'' function, but it is an instance method and I am not able to use it as a class method. Is there any workaround which will let me use it a class method, or is there some other alternate function? Thanks. -- Surendra Singhi http://ssinghi.kreeti.com,
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 Jul 25
3
Task scheduler
Does anyone know if there exists a Task Scheduler module in Ruby on Rails like in TurboGears below? http://www.turbogears.org/preview/docs/scheduler.html I''m using Ruby on Rails for a multiplayer online game and I want to set checks at regular intervals to see if users are still logged in etc. Thanks in advance -- Posted via http://www.ruby-forum.com/.