Abhishek shukla wrote in post #964036:
> hey Vineeth,
>
> As mentioned by others about understand the concept of partial first
> thats
> true.
>
> But the collection object can be accessable by the name of partial in
> you
> case you can access using "<%= form.attribute_name %>"
> <%= "render :partial => '/comment/form', :collection=>@blog.comments" %>
>
> But if in-case you don't want the object name "form" then you can parse
> "as
> => object_name" while calling partial. there are few more options like
> "form_counter" etc if you want to display it.
>
> Thanks
> Abhis


Thanks, that's quite a lot of useful information.

-- 
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