[Rails] link_to_remote can't replace specified element?

2008-12-30 Thread JHuizingh
I'm having an issue with the design of my views that I can't seem to wrap my head around. I have a page where I am showing a collection of objects in a list. The way that I designed it, it looked something like this: main view: here is the list <%= render(:partial => "items/item", :collec

[Rails] Re: AJAX replace items on a page progressively one at a time

2008-12-30 Thread JHuizingh
method I was able to start as many subtasks as I wanted like this: calls_to_be_made[0](); calls_to_be_made[1](); and then when one call returned I could have it kick of the next one until there are none left. Thanks! Jonathan On Dec 26, 4:16 pm, Frederick Cheung wrote: > On 26 Dec 2008

[Rails] AJAX replace items on a page progressively one at a time

2008-12-26 Thread JHuizingh
I am working on a problem where I have a large task that is broken down into a lot of subtasks. The subtasks each take a significant amount of time to do. My data model looks something like this: class LargeTask < ActiveRecord::Base has_many :sub_tasks end class SubTask < ActiveRecord::Base

[Rails] Re: Misconfiguration on different machine

2008-10-24 Thread JHuizingh
solved the issue? > > > > On Tue, Oct 21, 2008 at 10:19 PM, JHuizingh <[EMAIL PROTECTED]> wrote: > > > The original machine has > > hpricot-0.6.161 > > mechanize-0.8.3 > > and 2.1.0 of all the rails related gems. > > > The new machine does not hav

[Rails] Re: Misconfiguration on different machine

2008-10-21 Thread JHuizingh
-0.3.4, but the > other machine has my_gem-0.3.5 installed. Rails loads the system gem because > it is newer than the frozen one. > > So, try 'gem list' and compare frozen gem versions with the ones installed. > > > > On Tue, Oct 21, 2008 at 3:01 PM, JHuizingh <[

[Rails] Misconfiguration on different machine

2008-10-21 Thread JHuizingh
I created and have a rails app running on one machine. It is using rails 2.1. I ran: rake rails:freeze and rake gems:unpack on my rails app to put all dependencies into the vendor directory. Then I checked it into my repository. On a different machine, I checked out the repository and tried t

[Rails] Re: Problem with new action

2008-10-15 Thread JHuizingh
Christina, Thanks for the response. This is what my rake routes command outputs. The encryption_passphrases resource is at the top of everything in the application. The :controller/:action/:id route is at the very bottom. encryption_passphrases GET/ encryption_passphrases {

[Rails] Problem with new action

2008-10-14 Thread JHuizingh
I'm having issues submitting a form to the create action. In routes I have map.resources :encryption_passphrases This resource is not using an ActiveRecord model, so I can't use the form_for method in the view. In app/views/encryption_passphrases/new.html.erb I have this: <% form_tag(encryp

[Rails] Re: Session destroy link won't work

2008-10-06 Thread JHuizingh
Thank you. That was it. I could have sworn that I tried that, but I guess something else must have been wrong when I tried it. It works now. Thanks. Jonathan On Oct 6, 1:45 am, Frederick Cheung <[EMAIL PROTECTED]> wrote: > On Oct 6, 5:25 am, JHuizingh <[EMAIL PROTECTED]> w

[Rails] Session destroy link won't work

2008-10-06 Thread JHuizingh
I am trying to destroy a session created by Restful authentication plugin, but everything I've tried doesn't work. I've been googling for a while but haven't found anything that will fix this. These are the relevant lines that I currently have: config/routes.rb: map.resource :session, :membe

[Rails] Re: Polymorphic model path problems

2008-10-05 Thread JHuizingh
Thanks! That is exactly what I was looking for. Works like a charm. Jonathan On Sep 29, 12:01 pm, Daniel Moore <[EMAIL PROTECTED]> wrote: > becomes(klass) > > > In your case: link_to 'Show', credential.becomes(Credential) > --~--~-~--~~~---~--~~ You received thi

[Rails] Polymorphic model path problems

2008-09-28 Thread JHuizingh
I have a credentials_controller and Credential model. The Credential model is an STI structure with a number of classes inheriting it. For example: class CredWebsite1 < Credential When I try to do the index command in the credentials controller, it gives the error undefined method --