Re: [Rails-core] Adding flash message as render argument

2016-08-07 Thread Tom Prats
Sean - I'd agree with that but I think it'd be good to have it consistent with redirect_to. On Sun, Aug 7, 2016 at 4:19 PM Sean Linsley wrote: > To prevent top-level variable congestion, this may be better: > > render :index, flash: {notice: ‘hi’} > > > On Aug 7, 2016, at 3:17 PM, Tom Prats wro

Re: [Rails-core] how i get Checked check box value in rails 4

2016-08-07 Thread Colin Law
On 7 August 2016 at 09:54, Ronak Bhatt wrote: > how i get Checked check box value in rails 4 >From params. Assuming you have put the checkbox in a form. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this gr

[Rails-core] how i get Checked check box value in rails 4

2016-08-07 Thread Ronak Bhatt
how i get Checked check box value in rails 4 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to thi

Re: [Rails-core] Adding flash message as render argument

2016-08-07 Thread Sean Linsley
To prevent top-level variable congestion, this may be better: render :index, flash: {notice: ‘hi’} > On Aug 7, 2016, at 3:17 PM, Tom Prats wrote: > > Currently you can add a flash notice to your render call like so: > > flash[:notice] = "Notice me!" > render :index > > Similar to how it can

[Rails-core] Adding flash message as render argument

2016-08-07 Thread Tom Prats
Currently you can add a flash notice to your render call like so: flash[:notice] = "Notice me!" render :index Similar to how it can be passed with redirect_to, I'd like to be able to pass it as an argument to render: render :index, notice: "Notice me!" I've been using a monkey patch to allow th