hi

because of this:
def create
p params[:event].nil?
p params[:event][:name]
p params[:event][:from_date]

results in:
false
""
nil

ENV
/ruby-1.9.3-p194@my_gemset


first i thought it has something to do with gem decent_exposure, but i have
disabled that again...





On Wed, Nov 19, 2014 at 6:09 PM, Hassan Schroeder <
hassan.schroe...@gmail.com> wrote:

> On Wed, Nov 19, 2014 at 2:40 PM, tom <tomabr...@gmail.com> wrote:
>
> > Started POST "/events" for 127.0.0.1 at 2014-11-19 17:37:09 -0500
> > Processing by EventsController#create as HTML
> >   Parameters: {"utf8"=>"✓",
> > "authenticity_token"=>"JannWb1XCE12AKW4KlR56LAAmIOG1raHJh1ss4v0RBA=",
> > "event"=>{"name"=>"", "from_date(1i)"=>"2014", "from_date(2i)"=>"11",
> > "from_date(3i)"=>"19", "to_date(1i)"=>"2014", "to_date(2i)"=>"11",
> > "to_date(3i)"=>"19"}, "commit"=>"Create"}
>
> > --> why are my event date attributes nil/blank?
>
> What makes you think they are? The parameters are there.
>
> What version of Ruby/Rails are you running?
>
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
>
> --
> 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+unsubscr...@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/CACmC4yCAvR9N6Udei6Ky5HchS%2Bpa7LW0vQ4_d1UszoM%2BTSaSrg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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/CADQqhMf4nVxPQARergRV36YTb3xBOD6aTRp9RiOR1Rm-xJXP_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to