Re: [Rails] Re: Accessing datetime elements from hash passed to method

2011-08-06 Thread Colin Law
On 6 August 2011 20:50, Jarek Plonski wrote: >> Time/date objects have methods like year, month, day etc. which return >> the individual components >> > > Well I know that but, can you, please, tell how to use those methods in > my example? I don't know the format of you params string but you can

[Rails] Re: Accessing datetime elements from hash passed to method

2011-08-06 Thread Jarek Plonski
> Time/date objects have methods like year, month, day etc. which return > the individual components > Well I know that but, can you, please, tell how to use those methods in my example? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the G

[Rails] Re: Accessing datetime elements from hash passed to method

2011-08-06 Thread Frederick Cheung
On Aug 6, 7:20 pm, Jarek Plonski wrote: > I'm passing hash (called 'params') to a method. Some keys (one of them > is called 'starts_at') in that hash have date as a value (taken from > datetime_select helper). I want to access the date elements like date > only or time only but I'm just out of