Il giorno venerdì 10 aprile 2015 14:53:10 UTC+2, d ha scritto:
>
> Did you find out how to fix this?
>
Yes, it was a jruby problem, I solved with jruby 1.7.22
;)
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from thi
Il giorno lunedì 2 febbraio 2015 19:39:31 UTC+1, Hassan Schroeder ha
scritto:
>
> On Fri, Jan 30, 2015 at 8:43 AM, PandaR1 > wrote:
>
> > Now with 4.2.0 I got this error:
>
> > Do I have to modify something or it's a bug?
>
> See: https://github.com/jruby/jruby/issues/2286
>
> I suspect that'
On Fri, Jan 30, 2015 at 8:43 AM, PandaR1 wrote:
> Now with 4.2.0 I got this error:
> Do I have to modify something or it's a bug?
See: https://github.com/jruby/jruby/issues/2286
I suspect that's your issue.
HTH!
--
Hassan Schroeder hassan.schroe...@gmail.com
http://a
Il giorno lunedì 2 febbraio 2015 14:14:02 UTC+1, Xavier Noria ha scritto:
>
> The natural way to run a script in a Rails environment is to use the
> runner command.
>
> 1) Remove manual requires.
>
> 2) bin/rails runner my_script.rb
>
does not seems to work under jruby... rails batch seems to
>
> The point is which is the one you add that causes this particular
> error to occur? Once you find that then leave it in and take the
> others out, then add them back in one at a time to find out which is
> the one that adds the second initialisation.
>
I can remove require 'rubygems'
Bu
The natural way to run a script in a Rails environment is to use the runner
command.
1) Remove manual requires.
2) bin/rails runner my_script.rb
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop rec
On 2 February 2015 at 10:17, PandaR1 wrote:
>> My guess would be that something is getting loaded twice. I suggest
>> taking out all the requires and putting them back till you get the
>> problem. That may help you to home in on it.
>
>
> Yes, it seems some constant is already initialized.
>
> I
>
> My guess would be that something is getting loaded twice. I suggest
> taking out all the requires and putting them back till you get the
> problem. That may help you to home in on it.
>
Yes, it seems some constant is already initialized.
I tried removing the includes, but they are all ne
On 30 January 2015 at 16:43, PandaR1 wrote:
> This very simple script was running in 4.1.6
>
> require '.\config\config.rb'
> require '.\models\transazioni.rb'
>
> Transazioni.where(isprocessed: 'N').each do |tr|
> puts tr.id_transazione + ' ' + tr.transdate.to_s + ' ' + tr.idmaximo.to_s +
> ' ' +
This very simple script was running in 4.1.6
require '.\config\config.rb'
require '.\models\transazioni.rb'
Transazioni.where(isprocessed: 'N').each do |tr|
puts tr.id_transazione + ' ' + tr.transdate.to_s + ' ' + tr.idmaximo.to_s +
' ' + tr.codsap
end
exit
database.yml:
# DATA SOURCE
dataso
10 matches
Mail list logo