Hi,
anybody please help me out,am using rails 3 but using this
flash[:notice] doesnot works, i have used this in controllers.
any idea ? please help.
Regards,
Manoj
Hi,
anybody please help me out,am using rails 3 but using this
flash[:notice] doesnot works, i have used this in controllers.
any idea ? please help.
Regards,
Manoj
On 10 September 2012 05:48, Manoj M. [email protected] wrote:
Hi,
anybody please help me out,am using rails 3 but using this
flash[:notice] doesnot works, i have used this in controllers.
any idea ? please help.
Have a look at the Rails Guide on debugging, it will show you
techniques you can use to debug your code to find why it is not
working.
Colin
Paste your code…
Sent from Samsung Mobile.
Loganathan S. wrote in post #1075308:
Paste your code…
Sent from Samsung Mobile.
Hi,
here is my code below, @user is saved successfully but not flash
doesnot works. I have wrote this in userscontroller
if @user.save
flash[:notice] = "Your account has been created."
redirect_to signup_url
else
flash[:notice] = "There was a problem creating you."
render :action => :new
end
On Mon, Sep 10, 2012 at 5:34 AM, Manoj M. [email protected] wrote:
if @user.save flash[:notice] = "Your account has been created." redirect_to signup_url else flash[:notice] = "There was a problem creating you." render :action => :new end
redirect_to signup_url, flash: {
notice: “Your account has been saved” }
there shouldn’t be any issue with your code. how do you display the
flash
messages?
On Mon, Sep 10, 2012 at 8:34 PM, Manoj M. [email protected] wrote:
Posted via http://www.ruby-forum.com/.
–
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