Re: [Rails] How to insert multiple records into database using one form

2015-01-13 Thread clayton cottingham
i just searched google to figure this out a cpl days ago synopsis: use build http://archive.railsforum.com/viewtopic.php?id=717 On 2015-01-13, at 10:45 PM, Ephraim A. wrote: > I have 4 tables from the first table, I took all data from the two > columns and displayed it in the view. For each da

[Rails] How to insert multiple records into database using one form

2015-01-13 Thread Ephraim A.
I have 4 tables from the first table, I took all data from the two columns and displayed it in the view. For each data, I have two text fields and the user is supposed to fill those data. Having filled data into the text field, how can I insert all the records into the second table using one form o

[Rails] Re: Ruby code Injectors: Closures as Modules: Jackbox

2015-01-13 Thread Lou Henry
Matt Jones wrote in post #1165848: > On Monday, 29 December 2014 14:45:19 UTC-5, Ruby-Forum.com User wrote: >> Just run: gem install jackbox. >> >> gem itself. We will do our most to provide you with outstanding >> customer service. >> > > Bullshit. So far, your "customer service" has included sh

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-13 Thread Diego Dillenburg Bueno
> > "I guess"? Why not put some debugging/logging statements in your > code so you can say "I know"? Just a suggestion :-) Yeah, sorry for all the 'guessing', but I'm still on the start of the road around here :P Indeed gotta improve my debugging skills, thanks for the suggestion. ### what's th

[Rails] Re: Link To New Association

2015-01-13 Thread Diego Dillenburg Bueno
Further updates on my question above: what if I have a helper method to store the "current_patient", having always the last patient from my search query and on my hospitalizations_controller I build the Create method something like this: @hospitalization = current_patient.hospitalizations.new(hosp

Re: [Rails] Starting rails server

2015-01-13 Thread Colin Law
On 13 January 2015 at 14:54, Serguei Cambour wrote: > I think it was smth lik that. Anywa, it seems a bit strange: when trying to > install a Rails-related gem that was dependent from exactlly 1.1 of tilt, > running 'bundle install --local' was OK. But failed when running 'rails s'. > And after re

Re: [Rails] Starting rails server

2015-01-13 Thread Serguei Cambour
I think it was smth lik that. Anywa, it seems a bit strange: when trying to install a Rails-related gem that was dependent from exactlly 1.1 of tilt, running *'bundle install --local'* was OK. But failed when running '*rails s'*. And after removing Gemfile.lock and re-running bundle again, everythi

Re: [Rails] Starting rails server

2015-01-13 Thread Colin Law
On 13 January 2015 at 14:20, Serguei Cambour wrote: > No, I didn't upgrade the app. As I explained previously, I had to download > all the gems and install them locally one by one. Some of them were > dependent on 1.1, that's why I had to install it instead of 1.4.1. Oh, I see, so you had picked

Re: [Rails] Starting rails server

2015-01-13 Thread Serguei Cambour
No, I didn't upgrade the app. As I explained previously, I had to download all the gems and install them locally one by one. Some of them were dependent on 1.1, that's why I had to install it instead of 1.4.1. On 13 January 2015 at 14:39, Colin Law wrote: > On 13 January 2015 at 12:14, Serguei C

Re: [Rails] Starting rails server

2015-01-13 Thread Colin Law
On 13 January 2015 at 12:14, Serguei Cambour wrote: > 1.1 see Gemfile.lock before: > https://gist.github.com/Javix/efa6192ae995e89db950 > 1.4.1 after see Gemfile.lock after: > https://gist.github.com/Javix/1430ae66cfca2aa3a6f9 How did it get to be 1.1 in the first place, which is an ancient versi

[Rails] Link To New Association

2015-01-13 Thread Diego Dillenburg Bueno
Hey there, I have a patients model which has many hospitalizations, from the patients#show I want to generate a link to hospitalizations#new creating a new association to this very same patient, any ideas on how to do that? I want it to when I get to the hospitalizations#ne I be able to manipulate

Re: [Rails] Starting rails server

2015-01-13 Thread Serguei Cambour
1.1 see Gemfile.lock before: https://gist.github.com/Javix/efa6192ae995e89db950 1.4.1 after see Gemfile.lock after: https://gist.github.com/Javix/1430ae66cfca2aa3a6f9 On 13 January 2015 at 13:04, Colin Law wrote: > On 13 January 2015 at 11:53, Javix wrote: > > The problem is that I had to downl

Re: [Rails] Starting rails server

2015-01-13 Thread Colin Law
On 13 January 2015 at 11:53, Javix wrote: > The problem is that I had to download and install all the Rails related gems > and their dependencies separately because of firewall and proxi > restricitions (it was a real headache). The problem was due to the tilt > version (1.1) in the generated Gemf

Re: [Rails] Starting rails server

2015-01-13 Thread Javix
The problem is that I had to download and install all the Rails related gems and their dependencies separately because of firewall and proxi restricitions (it was a real headache). The problem was due to the tilt version (1.1) in the generated Gemfile.lock file; After deleting that file and re-

Re: [Rails] Re: Re: Re: CPU utilisation spikes to 100% on Rails application startup on ARM platform

2015-01-13 Thread Colin Law
On 13 January 2015 at 05:10, Chetan Raskar wrote: > Colin Law wrote in post #1166558: >> On 12 January 2015 at 17:13, Chetan Raskar wrote: What do you mean by 'startup'. Do you mean starting the server (which should only happen once, unless you are hitting the website so infr

Re: [Rails] Re: I need help building a relationship model.

2015-01-13 Thread Colin Law
On 13 January 2015 at 01:20, David Williams wrote: > Colin Law wrote in post #1166568: >> On 12 January 2015 at 21:40, David Williams >> wrote: >>> Right now, >>> my Event.rb >>> has belongs_to :activism_co_user >> >> What?? >> >>> has_one :category >>> >>> Activism_co_user.rb >>> has_many :event

[Rails] current_user.account.employees.includes(:entrances) does not what I expected it to

2015-01-13 Thread Walther Diechmann
Hi, my app is on Ruby 2.1.2 and Rails 4.1.5 like the subject states I would expect current_user.account.employees.includes(:entrances).where( 'entrances.clocked_at' => @month_range) to return all employees (to this current_user’s account) - and any entrances But I’m left with the emp