15 May 07:54
format.html {} and block
From: Sijo Kg <sijo <at> maxxion.com>
Subject: format.html {} and block
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-15 05:54:39 GMT
Subject: format.html {} and block
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-15 05:54:39 GMT
Hi
I have code like
format.html {redirect_to :action => 'define_sd_resolution_ui',:id =>
params[:id], :sd_resolution_id=>params[:sd_resolution_id]}
Here if the format is html then i have to do
@sd_ticket_resolution.errors.each_full{|msg| flash[:notice]= msg } this
also.
ie,
format.html {
@sd_ticket_resolution.errors.each_full{|msg| flash[:notice]= msg } this
also.
redirect_to :action => 'define_sd_resolution_ui',:id => params[:id],
:sd_resolution_id=>params[:sd_resolution_id]}
But this is error.How can I solve this?
Sijo
--
--
Posted via http://www.ruby-forum.com/.
RSS Feed