Re: [Rails] no method for nill class

2017-04-21 Thread Hassan Schroeder
On Fri, Apr 21, 2017 at 2:22 AM, Mugurel Chirica wrote: > Another very good option is to learn to use a debugger Another +1 for Pry -- absolutely an essential tool. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting

Re: [Rails] no method for nill class

2017-04-21 Thread Colin Law
On 21 April 2017 at 10:22, Mugurel Chirica wrote: > Another very good option is to learn to use a debugger (that can help you a > lot until you learn Ruby / Rails better, but it can be useful then as well), > is to have a look at Pry

Re: [Rails] no method for nill class

2017-04-21 Thread Mugurel Chirica
Another very good option is to learn to use a debugger (that can help you a lot until you learn Ruby / Rails better, but it can be useful then as well), is to have a look at Pry https://github.com/deivid-rodriguez/pry-byebug or for ruby 1.9.3 https://github.com/nixme/pry-debugger. You will need

Re: [Rails] no method for nill class

2017-04-21 Thread Colin Law
On 21 April 2017 at 00:30, fugee ohu wrote: > In the snippet below,the last line causes the error; :showdate is > whitelisted, it's components appear just in the params list returned by the > browser The error's at the plus sign but not sure which of them > > @showday =

[Rails] no method for nill class

2017-04-20 Thread fugee ohu
In the snippet below,the last line causes the error; :showdate is whitelisted, it's components appear just in the params list returned by the browser The error's at the plus sign but not sure which of them @showday = params["showdate(3i)"] showmonth_string = params["showdate(2i)"]