make it page = false?
On Dec 11, 4:43 pm, Martin <[email protected]> wrote:
> I have something like this:
>
> map.resources :books, :active_scaffold => true do |wine|
> wine.resources :reviews, :active_scaffold => true
> end
>
> and I'm trying to toss a custom action_link 'write review' in the
> books table scaffold (on the /books page). My question is how can I
> specify the link for each row?
>
> active_scaffold :book do |config|
> config.action_links.add 'review', :label => 'write review'
> config.action_links['review'].controller = :reviews
> config.action_links['review'].type = :record
>
> # trying to get a url which looks like: /books/:book_id/reviews/new
> config.action_links['review'].parameters = {:book_id => 1} #key line
> I suspect
> config.action_links['review'].method = nil
> config.action_links['review'].page = true
> config.action_links['review'].action = 'new'
> end
>
> Any hint?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---