If stumbled upon a side effect of the :record => :member change
(above) if you use active_scaffold_sortable via
git://github.com/davec/active_scaffold_sortable.git. In the sortable
plugin's _list_actions_html.erb view, it uses :record rather
than :member, so all of the action links do not show up. If you hack
it to use :member rather than :record, they should reappear and
function properly.

Hope this helps someone.

On Mar 13, 11:26 am, steveb <[email protected]> wrote:
> Just in case anyone else has the same problem, the documentation at:
>
> http://activescaffold.com/docs/api-action-link
>
> seems incorrect regarding the type argument.
>
> The doc says values for type can be :page | :record
>
> Digging into the code of the plugin, I discovered the proper values
> are :collection | :member
>
> Don't know how much hair I pulled out on this one. I hope that my
> discovery saves someone else some time.
>
> On Mar 12, 7:39 pm, steveb <[email protected]> wrote:
>
> > By the way, I had another post last night about not getting
> > active_scaffold_list_filters to show anything on the screen after what
> > appears to be a good config. I'm wondering if there's something
> > generally wrong with my installation. My environment on Windows is:
>
> > Ruby version 1.8.6 (i386-mswin32)
> > RubyGems version 1.3.5
> > Rack version 1.0
> > Rails version 2.3.5
> > Active Record version 2.3.5
> > Active Resource version 2.3.5
> > Action Mailer version 2.3.5
> > Active Support version 2.3.5
> > Application root .../ruby_on_rails/testapp
> > Environment development
> > Database adapter mysql
> > Database schema version 20100313001136
>
> > Someone please help if you can. Thanks.
>
> > On Mar 12, 5:57 pm, steveb <[email protected]> wrote:
>
> > > Hi, I'm having some trouble understanding how to configure action
> > > links to appear in the scaffold. I read through the doc and many
> > > examples in the group, but I'm still missing something. Here's my test
> > > controller.
>
> > > class SomethingsController < ApplicationController
> > >   active_scaffold :somethings do |config|
> > >     config.action_links.add "Test Link",
> > >       :label => "Test"
> > >     config.action_links.add "Test Table Link",
> > >       :label => "Test Table Link",
> > >       :type => :table
> > >     config.action_links.add "Test Record Link",
> > >       :label => "Test Record Link",
> > >       :type => :record
> > >   end
> > > end
>
> > > - The first link, Test Link, appears just fine, to the right of the
> > > "Create New" link
> > > - The second link and third links, Test Table Link and Test Record
> > > Link, don't appear
>
> > > I'm sure I'm missing something simple, right?
>
> > > Thanks in advance for any quick help you can give this poor noobie.

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