I am having the same problem.

It's been installed and configured according to the documentation, but
nothing shows. It doesn't seem this plugin has been worked on since
2008 and must have fallen out-of-date with ActiveScaffold.

Did you have any luck with getting this to work? I'm going to poke
around the source code to see if I can find a fix.

Zac

On Mar 12, 12:47 am, steveb <[email protected]> wrote:
> My very simple schema.            States <-- Institutions -->
> Accreditations
>
> My models:
>
> class State < ActiveRecord::Base
>   has_many :institutions
> end
>
> class Accreditation < ActiveRecord::Base
>   has_many :institutions
> end
>
> class Institution < ActiveRecord::Base
>   belongs_to :state
>   belongs_to :accreditation
> end
>
> My controllers:
>
> class AccreditationsController < ApplicationController
>   active_scaffold :accreditations
> end
>
> class StatesController < ApplicationController
>   active_scaffold :states
> end
>
> class InstitutionsController < ApplicationController
>   active_scaffold :institutions do |config|
>     config.actions.add :list_filter
>     config.list_filter.add(:association, :accreditation, { :label =>
> "Accreditations", :association => :accreditation })
>   end
> end
>
> I've also tried:
>
> class InstitutionsController < ApplicationController
>   active_scaffold :institutions do |config|
>     config.actions.add :list_filter
>     config.list_filter.add(:association, :accreditation)
>   end
> end
>
> My problem: Nothing shows up, nolistfilter, no errors, nothing! When
> I loadhttp://localhost:3000/institutions, nolistfilters appear
> above thelistof institutions. Everything else works fine. The plugin
> installed without errors.
>
> $ script/plugin install 
> git://github.com/tvongaza/active_scaffold_list_filters.git
> Initialized empty Git repository in ...../rr_01/vendor/plugins/
> active_scaffold_list_filters/.git/
> remote: Counting objects: 75, done.
> remote: Compressing objects: 100% (64/64), done.
> remote: Total 75 (delta 14), reused 17 (delta 2)
> Unpacking objects: 100% (75/75), done.
> From git://github.com/tvongaza/active_scaffold_list_filters
>  * branch            HEAD       -> FETCH_HEAD
>
> Arrrrgh. Can someone please help? Thanks!

-- 
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