Ruby on Rails Friday, April 21, 2017

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 = params["showdate(3i)"]
> showmonth_string = params["showdate(2i)"]
> @showmonth = Date::MONTHNAMES[showmonth_string.to_i]
> @showyear = params["showdate(1i)"]
> @showdate = @showmonth + " " + @showday + ", " + @showyear

As I believe I have suggested to you before, first level simple
debugging can be done using, so in this case if you insert
before the last line something like "Show date: #{@showmonth}, #{@showday}, #{@showyear}"

then you will see in the terminal what values those variables have.


You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment