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.
November 25th, 2007 at 11:18 PM Which alternative for fixing did you implement? Eliminate Rico Corners?
November 25th, 2007 at 11:18 PM Hi Brittain, no I added the prototype fix to ajax_scaffold.js so the offending method gets overriden. Cheers Scott.
November 25th, 2007 at 11:18 PM 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.
November 25th, 2007 at 11:18 PM So it seems I fixed only the edit / create the sort remains broken. I'm working on a real fix now. Cheers Scott.
November 25th, 2007 at 11:18 PM 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
November 25th, 2007 at 11:18 PM Hi Scott, It seems the 3.2.4 version solves the problem. Thanks for the update. -Guru Kathiresan
November 25th, 2007 at 11:18 PM 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_mainNovember 25th, 2007 at 11:18 PM Sorry for the double posting, I have to say it's not clear to see that you have submitted the post sucessfully.
November 25th, 2007 at 11:18 PM Hi Gael, cheers for posting that. I've deleted the repeat post. Scott
November 25th, 2007 at 11:18 PM 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?
December 3rd, 2007 at 04:59 AM 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?
December 3rd, 2007 at 01:44 PM Which authentication issue?