no config.edit?

1 view
Skip to first unread message

Oliver Barnes

unread,
Dec 30, 2009, 2:44:28 PM12/30/09
to ActiveScaffold : Ruby on Rails plugin
Hello,

I'm trying to disable the 'edit' link on a listing, as per

http://wiki.github.com/activescaffold/active_scaffold/api-action-link

but when I try to add

config.edit.link = false

to the configuration, I get the following error:

undefined method `edit' for Admin::PeopleController:Class

/Users/oliver/Sites/workout-contacts-admin-test2/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb:24:in
`send'
/Users/oliver/Sites/workout-contacts-admin-test2/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb:24:in
`method_missing'
/Users/oliver/Sites/workout-contacts-admin-test2/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:186:in
`method_missing'
/Users/oliver/Sites/workout-contacts-admin-test2/app/controllers/admin/people_controller.rb:32:in
`__instance_exec0'

has the API changed by any chance?

best
Oliver

Sergio Cambra .:: entreCables S.L. ::.

unread,
Dec 31, 2009, 3:16:11 AM12/31/09
to actives...@googlegroups.com
On Miércoles, 30 de Diciembre de 2009 20:44:28 Oliver Barnes escribió:
> Hello,
>
> I'm trying to disable the 'edit' link on a listing, as per
>
> http://wiki.github.com/activescaffold/active_scaffold/api-action-link
>
> but when I try to add
>
> config.edit.link = false
>
> to the configuration, I get the following error:
>
> undefined method `edit' for Admin::PeopleController:Class

There is no edit action, it's update (config.update.link = false)

--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com

Reply all
Reply to author
Forward
0 new messages