Hello,
    I love the concept of using <%=yield %> to automatically render
content but there are times where I find it a bit restraining.

For instance, I would like to to use the exact same partial for these 2
methods:

list_roles and create

If I try to use render :partial => 'list_roles' in the create method,
the only way I can get it to work is to create a _list_roles.html.erb
template which seems like a bit of overkill.

The only difference that the create/list_roles template is going to have
is one extra dynamic table row.

Is there anyway to increase the flexibility of the yield method?

Thanks,
Clem
-- 
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