Figured it out..
It is just <%= agenda_item_url() do %>

However, I am not able to pass agenda_id and item_id to this create 
method in my controller.


Frederick Cheung wrote:
> On Mar 9, 1:24�am, Carlos Santana <[email protected]>
> wrote:
>> Thanks Fred...
>>
>> I referred tohttp://ueckerman.net/2007/04/24/the-basics-of-rest-in-rails/.
>>
>> Your suggestion worked for creating topic. However, I have nested
>> resource as topic has_many items. When I use similar form_tag method in
>> my items, I am getting " undefined local variable or method `items_path'
>> for #<ActionView::Base:0xb71c205c>" error.
> 
> that just sounds like your routes.rb is not in sync with what you're
> trying to do (since it's from there that the helper methods items_path
> and so on are created). You might find 
> http://guides.rubyonrails.org/routing.html
> useful
> 
> Fred

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to