Thanks for the don't-use-2.3-with-advanced-search tip.
Now at least I can stop beating my head against the wall.

field_search is actually better than I first thought, so I can get by
with that.

Thank you Sergio!!


On Feb 3, 10:20 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Jueves, 3 de Febrero de 2011 15:02:52 usted escribió:
>
> > Well, I moved
> >   map.resources :nodes, :active_scaffold => true  #ADDED THIS
> > BEFORE the default routes.
> > Now I click the advanced_search button, and development.log says
> >   "ActionController::UnknownAction (No action responded to show... "
>
> > So I added :show to the actions in application_controller.rb, like
> > this:
> >       config.actions =
> > [:list, :advanced_search, :show, :nested, :subform]
>
> > Then when I clicked the Advanced Search link, I got
> >     ActiveRecord::RecordNotFound (Couldn't find Node with
> > ID=show_advanced_search):
>
> If you get that error then advanced search mustn't add their actions to the
> resource. Advanced Search should be fixed, but I don't know who is the author.
> You could add :collection => {:show_advanced_search => :get} to your routes as
> a workaround.
>
> Anyway, ActiveScaffold (and advanced search too) should work without define 
> the
> resource in the routes, although if you define the resource you must enable
> :active_scaffold option.
>
> I have remembered update_table was removed to simplify list action, so
> Advanced Search doesn't work because it must be updated to work with rails-2.3
> and master branches. Sorry, my previous tips were unhelpful.
>
>
>
>
>
>
>
>
>
>
>
> > Totally confused.  I guess I'd be well served by building a tiny rails
> > app like the tutorial and getting that to work.
>
> > And, to your other question:
> > yes, :search in my actions works fine, as does :field_search.
> > Doesn't quite give me the functionality I want, though.
>
> > Thanks for your help so far.
> > Any ideas on what's going on now?
>
> > On Feb 3, 3:34 am, "Sergio Cambra .:: entreCables S.L. ::."
>
> > <[email protected]> wrote:
> > > On Miércoles, 2 de Febrero de 2011 19:53:05 Lindsay Morris escribió:
> > > > Thanks, Sergio.
> > > > No, I had not done that.  But my routes.rb file just has (comments
> > > > trimmed):
>
> > > > ActionController::Routing::Routes.draw do |map|
> > > >   map.connect ':controller/:action/:id'
> > > >   map.connect ':controller/:action/:id.:format'
> > > >   end
>
> > > > The model name here is "node".
> > > > If I add a line so it looks like this:
>
> > > > ActionController::Routing::Routes.draw do |map|
> > > >   map.connect ':controller/:action/:id'
> > > >   map.connect ':controller/:action/:id.:format'
> > > >   map.resources :nodes, :active_scaffold => true  #ADDED THIS
> > > >   end
>
> > > > Then, just like before, when I click Search, I get "No action
> > > > responded to update_table."
>
> > > The line would be above default  routes. Try it, although I don't sure it
> > > will fix it. Usually those errors were get when resources was added
> > > without active_scaffold option. Also can you try with AS default search
> > > action?
>
> > > > I read the page on rails and restful routes,
>
> > > >http://guides.rubyonrails.org/routing.html. Didn't find it helpful.
>
> > > > Can you give me another hint please?
> > > > Thanks.
>
> > > > On Feb 2, 11:18 am, "Sergio Cambra .:: entreCables S.L. ::."
>
> > > > <[email protected]> wrote:
> > > > > On Miércoles, 2 de Febrero de 2011 16:39:26 Lindsay Morris escribió:
> > > > > > Rails 2.3.5
> > > > > > AS 1.2RC1
>
> > > > > > I installed advanced_search, got it to show an "Advanced Search
> > > > > > link on my form. Excellent!
>
> > > > > > But when I click the Search button, I get:
>
> > > > > >   Unknown action
> > > > > >   No action responded to update_table. Actions:
> > > > > > attributes_hash_is_empty?, ... (etc)
>
> > > > > > Hmm, I think. Needs an :update_table action?
> > > > > > So I tried changing this line in application_controller.rb from
> > > > > >       config.actions = [:list, :advanced_search, :nested, :subform]
> > > > > > to
> > > > > >       config.actions =
> > > > > > [:list, :advanced_search, :update_table, :nested, :subform]
>
> > > > > > But then the page would not load, complaining
> > > > > >     undefined method `update_table' for
> > > > > > #<ActiveScaffold::Config::Core: 0x1041b3e88>
>
> > > > > update_table is an action (method) defined in list module, so you
> > > > > don't need to add update_table to config.actions.
>
> > > > > Probably it's a routing problem, have you added :active_scaffold =>
> > > > > trueto the map.resources line?
>
> > > > > --
> > > > > Sergio Cambra .:: entreCables S.L. ::.
> > > > > Mariana Pineda 23, 50.018 Zaragoza
> > > > > T) 902 021 404 F) 976 52 98 07 E) [email protected]
>
> > > --
> > > Sergio Cambra .:: entreCables S.L. ::.
> > > Mariana Pineda 23, 50.018 Zaragoza
> > > T) 902 021 404 F) 976 52 98 07 E) [email protected]
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Mariana Pineda 23, 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to