Thanks Sergio for jumping in.
I did use "set_link" like you indicated but got error while rendering
the page. Any ideas?
Showing vendor/plugins/active_scaffold/frontends/default/views/
_list_record.rhtml where line #14 raised:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.name
Extracted source (around line #14):
11: <% column_value = get_column_value(record, column) -%>
12:
13: <td class="<%= column_class(column, column_value) %>" >
14: <%= render_list_column(column_value, column, record) %>
15: </td>
16: <% end -%>
17: <% if active_scaffold_config.action_links.any? {|link| link.type
== :record } -%>
Trace of template inclusion: /vendor/plugins/active_scaffold/frontends/
default/views/_list.rhtml, /vendor/plugins/active_scaffold/frontends/
default/views/list.rhtml
vendor/plugins/active_scaffold/lib/active_scaffold/helpers/
list_column_helpers.rb:69:in `render_list_column'
vendor/plugins/active_scaffold/frontends/default/views/
_list_record.rhtml:14:in
`_run_erb_47vendor47plugins47active_scaffold47frontends47default47views47_list_record46rhtml'
vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/
action_columns.rb:69:in `each'
vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/
action_columns.rb:56:in `each'
......
On Jul 6, 10:35 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Lunes, 6 de Julio de 2009 08:16:08 redbros escribió:
>
> > Hi,
>
> > I'm new to ActiveScaffold. Just got it setup and trying to customize
> > it now. I need some help with the usage of the Action Link. I want to
> > add a link to a column for each of my record. According to this
> >http://activescaffold.com/docs/api-action-linkI could do that by
>
> > config.columns[:name].link
>
> To set a link in a column:
> config.columns[:name].set_link 'action_name', :controller => 'controller_name'
> You can add more options, look at api: action
> linkhttp://wiki.github.com/activescaffold/active_scaffold/api-action-link
>
> To add a link at right (next to edit, delete and show links):
> config.action_links.add 'action_name', :type => 'record', ...
>
>
>
> > Doesn't seem to create a link on the table in each row. Also, how do I
> > add restful feature to the link (e.g.: Need to
> > add :action, :controller, :id
>
> > I'm on ActiveScaffold version for rails 2.1
>
> > Any help is very much appreciated!!!
>
> > -Dave
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---