Can i render :partial a view without leading underscore?

Posted by ZX12R on Stack Overflow See other posts from Stack Overflow or by ZX12R
Published on 2010-05-12T12:14:56Z Indexed on 2010/05/12 12:24 UTC
Read the original article Hit count: 170

Filed under:

i am facing a precarious condition here. I need to partially render a page that does not have a leading underscore.

<%= render(:partial => "contact" ,:controller=>"home") %>

this will look for

app/views/home/_contact.html.erb

but i want it to look for

app/views/home/contact.html.erb

is there a way of doing this.?

Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails