From: blazeroot Date: 2011-02-21T23:40:12+09:00 Subject: Re: Html + Javascript + Ruby So, You have array 'terefas'. You can get that two values "cccccccccc" this way: params[:terefas][0][:sub][0] and params[:terefas][0][:input] as You can see it there: tarefas"=>{"0"=>{"sub"=>{"0"=>"cccccccccc"}, "input"=>"cccccccccc"}} 2011/2/21 Bla ... : > getting this: > >  [4;36;1mSQL (1.3ms)[0m   [0;1mINSERT INTO "nome_tarefas_fluxos" > ("fluxo_id", "nome_tarefa", "numero_subtarefas") VALUES(110, > E'0sub0ccccccccccinputcccccccccc', NULL) RETURNING "id"[0m > > > in this: > > >  Parameters: {"x"=>"12", "numero_tarefas"=>"1", "y"=>"11", > "action"=>"create", > "authenticity_token"=>"id8C+Wlqc90ryf4479bFISkyCmLhgxr+h8n7A8osLlY=", > "tarefas"=>{"0"=>{"sub"=>{"0"=>"cccccccccc"}, "input"=>"cccccccccc"}}, > "options_subtarefas"=>"Selecione quantidades...", > "controller"=>"fluxos", "fluxo"=>{"nome"=>"ccccccccccc"}} >  [4;35;1mPermissao Load (2.5ms)[0m   [0mSELECT * FROM "permissoes" > WHERE (usuario_id = 2 AND perfil = E'Avançado' AND projeto_id = 0) [0m >  [4;36;1mSQL (0.3ms)[0m   [0;1mBEGIN[0m >  [4;35;1mSQL (1.2ms)[0m   [0mINSERT INTO "fluxos" ("created_at", > "nome", "numero_tarefas", "updated_at", "numero_subtarefas") > VALUES('2011-02-21 11:20:06.285885', E'ccccccccccc', 1, '2011-02-21 > 11:20:06.285885', NULL) RETURNING "id"[0m >  [4;36;1mSQL (7.1ms)[0m   [0;1mCOMMIT[0m >  [4;35;1mSQL (0.3ms)[0m   [0mBEGIN[0m >  [4;36;1mSQL (1.3ms)[0m   [0;1mINSERT INTO "nome_tarefas_fluxos" > ("fluxo_id", "nome_tarefa", "numero_subtarefas") VALUES(110, > E'0sub0ccccccccccinputcccccccccc', NULL) RETURNING "id"[0m >  [4;35;1mSQL (11.0ms)[0m   [0mCOMMIT[0m > Redirected to http://localhost:3001/fluxos > Completed in 61ms (DB: 25) | 302 Found [http://localhost/fluxos] > > -- > Posted via http://www.ruby-forum.com/. >