Scott Rutherford

Life on and off the Rails

 

AjaxScaffold 3.2.3 Released

January 23rd, 2007

We released a new version of AS today which fixes the issues with prototype and rico when using Rails 1.2.1. For details of the issue you can see my previous post.

This is simply a fix for the v3 plugin and contains none of the new (and very exciting stuff) coming in v4. It should be a straight upgrade for anyone on 3.2.2.

12 Responses to “AjaxScaffold 3.2.3 Released”

  1. Brittain Says:
    Which alternative for fixing did you implement? Eliminate Rico Corners?
  2. Scott Rutherford Says:
    Hi Brittain, no I added the prototype fix to ajax_scaffold.js so the offending method gets overriden. Cheers Scott.
  3. Scott Rutherford Says:
    So, it seems the fix in here is not always that effective (not sure why yet). If you still have issues the prototype hack described in my previous post does work. Sorry. Scott.
  4. Scott Rutherford Says:
    So it seems I fixed only the edit / create the sort remains broken. I'm working on a real fix now. Cheers Scott.
  5. Guru Kathiresan Says:
    Hi Scott, With Firefox 2.0.0.1, Create/Edit/Delete works and Sort doesn't work. With IE 6/7, the Sorting working but Create/Edit/Delete doesn't work. Any Idea why it is not working ? Thanks, Guru Kathiresan
  6. Guru Kathiresan Says:
    Hi Scott, It seems the 3.2.4 version solves the problem. Thanks for the update. -Guru Kathiresan
  7. Gael Says:
    Here's a patch to enabled sorting, paging, delete and flash message when Javascript is disabled:
    @@ -153,7 +153,7 @@
             include AjaxScaffold::Common
             include AjaxScaffold::Controller
     
    -        verify :method => :post, :only => [ :destroy#{suffix}, :create#{suffix}, :update#{suffix} ],
    +        verify :method => :post, :only => [ :create#{suffix}, :update#{suffix} ],
                    :redirect_to => { :action => :#{prefix}table }
     
             after_filter :clear_flashes
    @@ -221,6 +221,7 @@
                 #{prefix}table_setup
                 render#{suffix}_template(:action => 'table')
               else
    +            #{prefix}table_setup
                 #{prefix}return_to_main
               end
             end
    @@ -247,7 +248,7 @@
     
                 # Javascript disabled fallback
                 if @successful
    -              @options = { :action => "create" }
    +              @options = { :scaffold_id => params[:scaffold_id], :action => "create" }
                   render#{suffix}_template(:action => "_new_edit.rhtml", :layout => true)
                 else
                   #{prefix}return_to_main
    
  8. Gael Says:
    Sorry for the double posting, I have to say it's not clear to see that you have submitted the post sucessfully.
  9. Scott Rutherford Says:
    Hi Gael, cheers for posting that. I've deleted the repeat post. Scott
  10. John Sheffield Says:
    Scott, Sorry in advance for the newbie question. Since ActiveScaffold does not create a folder for partials like AjaxScaffold, how does one add the fckeditor for textareas? I have a Description field in a model that requires html. Is there an attribute in the config variable returned by the active_scaffold method I can set? Or, do I need to edit a partial or template used by Active Scaffold?
  11. christmas nativity scene Says:
    This is great! One question: Is there any way around the authentication issue? I have a portal which requires a login/password. Am I out of luck?
  12. Scott Says:
    Which authentication issue?
Leave a Reply

This blog used the Shay theme as a base and is powered by Mephisto