[Rails] Re: ruby on rails companies in bangalore

2016-04-19 Thread Angeline Angeline100
hello Greetings my name is Angeline please contact me at my email.((djibis...@live.fr )) I believe God has his own way to bring people together I have something important to discuss with you. please contact me i will reply you with my pictures please contact me --((djibis...@live.fr )

[Rails] Re: Problem with query and update table on db

2016-04-19 Thread Elton Santos
My console is this: Parameters: {"utf8"=>"✓", "search_employee_by_cpf"=>"111", "authorization_id"=>"4", "authorization"=>{"contract_number"=>["11"], "value_solve"=>["4343443", "", "", ""]}, "commit"=>"Reserve"} SQL (315.7ms) *UPDATE "authorizations" SET "value_solve" = '---* *- ''4343

Re: [Rails] Re: Problem with query and update table on db

2016-04-19 Thread Colin Law
On 19 April 2016 at 14:02, Elton Santos wrote: > My console is this: > > Parameters: {"utf8"=>"✓", "search_employee_by_cpf"=>"111", > "authorization_id"=>"4", "authorization"=>{"contract_number"=>["11"], > "value_solve"=>["4343443", "", "", ""]}, "commit"=>"Reserve"} > SQL (315.7ms) UPD

[Rails] nested_attributes in Form Helper - what is the "Rails way"?

2016-04-19 Thread Piotr Brych
We are working with nested attributes and we've reached a point where we're not sure if there is a better, clearer, "more rails" way of dealing with it. We have 3 models - Organisation, Category and a strictly join table CategoryOrganisation (no additional attributes). The relation between Or

Re: [Rails] nested_attributes in Form Helper - what is the "Rails way"?

2016-04-19 Thread Stewart Mckinney
Have you looked at http://apidock.com/rails/v4.0.2/ActionView/Helpers/FormOptionsHelper/collection_check_boxes ? Seems to be exactly what you want. On Tue, Apr 19, 2016 at 11:07 AM, Piotr Brych wrote: > We are working with nested attributes and we've reached a point where > we're not sure if the

[Rails] Re: nested_attributes in Form Helper - what is the "Rails way"?

2016-04-19 Thread Frederick Cheung
On Tuesday, April 19, 2016 at 4:09:21 PM UTC+1, Piotr Brych wrote: > > We are working with nested attributes and we've reached a point where > we're not sure if there is a better, clearer, "more rails" way of dealing > with it. > > We have 3 models - Organisation, Category and a strictly join t

[Rails] Re: Problem with query and update table on db

2016-04-19 Thread Elton Santos
Damm, my problem continues. I have this: @selected_ids.zip(params[:authorization][:contract_number]).each do > |id, value| > Authorization.where(contract_number: > params[:authorization][:contract_number]).update_all(value_solve: > params[:authorization][:value_solve], situation:

Re: [Rails] Re: Problem with query and update table on db

2016-04-19 Thread Colin Law
On 19 April 2016 at 19:53, Elton Santos wrote: > Damm, my problem continues. I have this: > >> @selected_ids.zip(params[:authorization][:contract_number]).each do >> |id, value| >> Authorization.where(contract_number: >> params[:authorization][:contract_number]).update_all(value_solv

[Rails] Re: Problem with query and update table on db

2016-04-19 Thread Elton Santos
params[:authorization][:value_solve] = contract numbers checked -- 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.

Re: [Rails] Re: Problem with query and update table on db

2016-04-19 Thread Colin Law
On 19 April 2016 at 20:56, Elton Santos wrote: > params[:authorization][:value_solve] = contract numbers checked No, I meant exactly what data is in it. Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from

[Rails] Re: Problem with query and update table on db

2016-04-19 Thread Elton Santos
This: 11 33 My contract numbers checked -- 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 g

[Rails] Re: Problem with query and update table on db

2016-04-19 Thread Elton Santos
My contract examples: 11, 22, 33 and 44, respectivaly authorization id 1, 2, 3 and 4 -- 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+uns

Re: [Rails] Re: Problem with query and update table on db

2016-04-19 Thread Colin Law
On 19 April 2016 at 21:30, Elton Santos wrote: > This: > > 11 > 33 > > My contract numbers checked Is that an array? If so then when you say update_all(value_solve: params[:authorization][:value_solve], situation: 2) and params[:authorization][:value_solve] is an array, what do you expect that t

[Rails] Re: Problem with query and update table on db

2016-04-19 Thread Elton Santos
All what I want is this, how show the image. Click on check, fill value, click in Reserve, save on table Authorization. But now, save, but is wrong, how show the image

[Rails] Re: Problem with query and update table on db

2016-04-19 Thread Elton Santos
It is almost finishing! I believe. Look: Processing by RefinancingsController#new as HTML > Parameters: {"utf8"=>"✓", "search_employee_by_cpf"=>"111", > "authorization"=>{"contract_number"=>["11", "33"], "value_solve"=>["43343", > "", "45454", ""]}, "commit"=>"Reserve"} > SQL (91.9ms