Hi,
How can I get rails to render a .builder template from within a
respond_to block?
thanks
Mark
Hi,
How can I get rails to render a .builder template from within a
respond_to block?
thanks
Mark
How can I get rails to render a .builder template from within a
respond_to block?
Mark
Uh, post some code? And why would you “render” something (HTML?) from
inside
a respond_to?
–
Phlip
Test Driven Ajax (on Rails) [Book]
“Test Driven Ajax (on Rails)”
assert_xpath, assert_javascript, & assert_ajax
Phlip wrote:
How can I get rails to render a .builder template from within a
respond_to block?Mark
Uh, post some code? And why would you “render” something (HTML?) from
inside
a respond_to?
e.g. i want to render a rxml or rss.builder template from the format.rss
option
respond_to do |format|
format.html # index.html.erb
format.rss
end
On Jul 7, 8:37 pm, Mark [email protected] wrote:
e.g. i want to render a rxml or rss.builder template from the format.rss
option
respond_to do |format|
format.html # index.html.erb
format.rss
end
I hope there’s a nicer way, but this works:
render :action => ‘show.rxml’, :layout => false
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs