How do use a different view for an action but with the same layout?
4 views
Skip to first unread message
veto
unread,
Oct 20, 2009, 6:17:12 AM10/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ramaze
Hi,
I need to render different forms in the view but i only like to use
one action for it.
i tried #respond(render_view(:service_1))
but it won't render the layout.
veto
Michael Fellinger
unread,
Oct 20, 2009, 7:26:27 AM10/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ram...@googlegroups.com
The quick and dirty way: action.view = nil return render_view(:service_1)
The other quick and dirty way: respond render_custom(:service_1){|action| action.method = nil }