Ruby on Rails
Thursday, April 20, 2017
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
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b0ab09c9-1484-439b-aa62-4e1b9cd384fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment