On Nov 6, 11:11 pm, Shandy Nantz <[EMAIL PROTECTED]>
wrote:
> Philip Hallstrom wrote:
> >> 3i],
> >> at those values? Thanks,
> > Maybe I'm not understanding but why not access params[:post][:from]
> > and then request what parts you want using DateTime methods.
>
> it doesn't complain when I do that but it doesn't give any values back
> either. If I try params[:to][:1i] it complains about the number, if I
> try params[:to]["1i"] I get

Your're trying too hard. params['post']['to(1i)'] etc... (or use
select_date )

Fred
>
> You have a nil object when you didn't expect it!
> You might have expected an instance of ActiveRecord::Base.
> The error occurred while evaluating nil.[]
>
> Parameters:
>
> {"commit"=>"Submit",
>  "post"=>{"from(1i)"=>"2008",
>  "to(1i)"=>"2008",
>  "from(2i)"=>"11",
>  "to(2i)"=>"11",
>  "from(3i)"=>"6",
>  "to(3i)"=>"6"}}
>
> Right now I am lost on what to do because this should be simple.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to