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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 10 September 2012 05:48, Manoj M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Paste your code... Sent from Samsung Mobile. On Sep 10, 2012 1:58 PM, "Colin Law" <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 10 September 2012 05:48, Manoj M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Sep 10, 2012 at 5:34 AM, Manoj M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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 > endredirect_to signup_url, flash: { notice: "Your account has been saved" } -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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 > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.