English 中文(简体)
活动脚架: 如何从列表页面顶部删除“ 创建新” 链接
原标题:ActiveScaffold: How to remove "Create New" link from top of list page

我想删除“ 创建新” 链接( 带有绿色 + 图标的链接), 在 ApentiveScoffold 列表的顶端 。 我尝试了 config. create. link=false 和 config. list. create. link=false 但他们不起作用 。 这必须非常简单, 但我找不到!

最佳回答

弄清楚了,再加一个

config.actions.exclude :create

配置部分的配置部分。 我已经尝试过这个部分, 但由于后来引用“ 创建” 例如“ 创建”, 我尝试过这个部分, 但是错误正在获取错误, 例如

config.create.link=false

由于创建已被排除为一项行动, AS 不希望稍后再看到配置!!

问题回答

暂无回答




相关问题
Redirect subdomain to /folder

I want to redirect the sub-domain webmail to /roundcube for that domain. This have to work for all virtual hosts in apache. Example: webmail.example.com must point to [www.]example.com/roundcube ...

Fastest way to store easily editable config data in PHP?

What is the fastest way to store config data in PHP so that it is easily changeable (via PHP)? First I thought about having config.php file, but I can t edit it on fly with PHP, at least not very ...

siFR 3, no fonctionnal issues for some Javascript params

I m trying to use siFR 3. I need set to the flash element to use max width for a text replaced. The width of flash text can use 200px MAX. The problem of the following code is that Here s is my ...

Getting a Reference to a Zend_Application s Config Object

Is there a helper method/object/methodology for getting a reference to a Zend_Application s config resource? I know I can do something like $config = new Zend_Config_Ini($file, $environment); but ...

Where to configure Hudson node disk/temp space thresholds?

I am currently running a Hudson instance on a VM slice. As I don t have a need to run more than a couple small applications from it, I m minimizing how much space I devote to it. The sizes I ve ...

trigger config transformation in TFS 2010 or msbuild

I m attempting to make use of configuration transformations in a continuous integration environment. I need a way to tell the TFS build agent to perform the transformations. I was kind of hoping it ...

wix custom dialog for config edit

hi i m trying make a setup msi for my application with wix v3 I have a problem about this task; I need a user input that will be stored in my application s config file (for example i need a dialog for ...

热门标签