Okay, I wrote out some basic code to look at:

http://gist.github.com/575243

This is just a basic example and here are my current issues and 
concerns:

The view houses a link that I can click to run the example rake task.

If I'm in development mode it runs in windows without opening an 
additional window.

If I'm in production mode it runs in linux.

I can click on the Read Rake Results link and it auto populated the 
f.puts from the rake task into a textarea partial.

Issue/Concern #1:  In Windows the link is clicked and the task runs in 
the background (no waiting or delay exists).  This is what it should be 
doing.  However, in linux, the page delays as it's running the task.  If 
the task is long it does not appear to run in the background so it 
eventually errors out, yet the task continues to run.

I would like to figure out why it's doing this.

Issue/Concern #2:  Locking down anyone from being able to view the page 
(I addressed this with my authorize method which only allows a super 
admin to view or run the tasks)

Issue/Concern #3:  I would rather have the textarea partial update using 
some type of observer as the file is being written.  I'm unsure of what 
the best way to accomplish this would be.

Please let me know your thoughts.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to