Problema compilazione exe con librerie Qt

Ciao a tutti,

ho da poco installato le librerie Qt da usare insieme a Ruby ma
stranamente non riesco più a compilare un exe su Win Vista.

Partendo da un semplice “hello world” e usando OCRA una volta creato
l’exe (senza riportare alcun errore durante il processo) se lo eseguo mi
ritrovo con:

"C:/Users/Utent1/AppData/Local/Temp/ocr1E1B.tmp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31
in ‘gem_original_require’ “: no such file to load – Qt4 (LoadError)
…”

La cosa incomprensibile è che stamattina compilando lo stesso srcript
ottenevo un EXE perfettamente funziononante.

Qualcuno mi può aiutare?

Grazie in anticipo.

Yuri R. wrote:

Ciao a tutti,

ho da poco installato le librerie Qt da usare insieme a Ruby ma
stranamente non riesco più a compilare un exe su Win Vista.

Partendo da un semplice “hello world” e usando OCRA una volta creato
l’exe (senza riportare alcun errore durante il processo) se lo eseguo mi
ritrovo con:

"C:/Users/Utent1/AppData/Local/Temp/ocr1E1B.tmp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31
in ‘gem_original_require’ “: no such file to load – Qt4 (LoadError)
…”

La cosa incomprensibile è che stamattina compilando lo stesso srcript
ottenevo un EXE perfettamente funziononante.

Qualcuno mi può aiutare?

Grazie in anticipo.

Ho risolto compilando l’exe partendo dallo script in un file formato
“.rbw”.

Sarei curioso però di sapere il perchè con “.rb” mi da problemi mentre
con “.rbw” no.

Grazie.

E’ un bug introdotto con la 2.3.4
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3144-undefined-method-for-string-ror-234
Per fini didattici ti consiglio di usare la 2.3.3, almeno fino a quando
non
verrà risolto il problema.

Luca

Con le versioni 2.3.3 ovvvero:

D:\work\blog>gem list

*** LOCAL GEMS ***

actionmailer (2.3.3)
actionpack (2.3.3)
activerecord (2.3.3)
activeresource (2.3.3)
activesupport (2.3.3)
mysql (2.8.1.1)
rack (1.0.0)
rails (2.3.3)
rake (0.8.7)
rubygems-update (1.3.5)
sqlite3-ruby (1.2.5)

Funxiona!!!
se potete spiegarmi .

Grazie,
Sergio.

Sergio wrote:

sqlite3-ruby (1.2.5)
blog>ruby script/generate scaffold Forum name:string description:text
Showing /app/views/layouts/forums.html.erb/ where line #12 raised:
14: <%= yield %>
c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:in each' D:/work/blog/app/views/layouts/forums.html.erb:12:in_run_erb_app47views47layouts47forums46html46erb’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:61:in load!' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:951:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:107:in respond_to' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:inprocess’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:in cache' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:34:inrun’
c:/ruby191/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'| c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:28:in[]’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:1250:in render_for_file' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:173:inrespond’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:in perform_action_with_rescue' c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:inblock in call’
:8:in synchronize' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:inservice’

“Content-Type”=>“text/html”}


Ml mailing list
[email protected]
http://lists.ruby-it.org/mailman/listinfo/ml


Sergio D.
Denver srl - Dronero
tel 0171 911383 fax 0171 911387
mailto:[email protected]
www.denverbike.com

AVVERTENZE AI SENSI DEL DECRETO LGS. 196/2003 SULLA PRIVACY.

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i, sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceveste questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema;
costituisce comportamento contrario ai principi dettati dal Decreto Lgs.
196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per
finalità diverse.

This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited (D.lgs 196/2003). If you received this
transmission in error, please inform the sender immediately and delete
the material.

Grazie Luca.
Ancora una cosa, se puoi aiutarmi.

Per utilizzare mysql cosa devo fare???
nel senso che se faccio:

rails blog -d mysql … ok
cd blog

blog>ruby script/generate scaffold Forum name:string description:text
… ok

D:\work\blog1>rake db:create
(in D:/work/blog1)
Couldn’t create database for {“adapter”=>“mysql”, “encoding”=>“utf8”,
"reconnect
"=>false, “database”=>“blog1_development”, “pool”=>5,
“username”=>“root”, “passw
ord”=>nil, “host”=>“localhost”}, charset: utf8, collation:
utf8_general_ci (if y
ou set the charset manually, make sure you have a matching collation)

D:\work\blog1>

Seguendo alcuni tutorial …

N.B. se hai la bonta’ di darmi una sequenza di comandi che siano ok.
Grazie in anticipo

Sergio.

Luca G. wrote:

E’ un bug introdotto con la 2.3.4
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3144-undefined-method-for-string-ror-234
Per fini didattici ti consiglio di usare la 2.3.3, almeno fino a quando non
verrà risolto il problema.

Luca


Sergio D.
Denver srl - Dronero
tel 0171 911383 fax 0171 911387
mailto:[email protected]id
www.denverbike.com

AVVERTENZE AI SENSI DEL DECRETO LGS. 196/2003 SULLA PRIVACY.

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i, sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceveste questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema;
costituisce comportamento contrario ai principi dettati dal Decreto Lgs.
196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per
finalità diverse.

This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited (D.lgs 196/2003). If you received this
transmission in error, please inform the sender immediately and delete
the material.

Saluti a tutti.
Ho cominciato da poco con Rails e praticamente al primo tutorial trovato
su Internet succede qualcosa che non capisco.

Mia configurazione su Windows XP e Mac OS 10.5

D:\work\blog>gem list

*** LOCAL GEMS ***

actionmailer (2.3.4, 2.3.3)
actionpack (2.3.4, 2.3.3)
activerecord (2.3.4, 2.3.3)
activeresource (2.3.4, 2.3.3)
activesupport (2.3.4, 2.3.3)
mysql (2.8.1.1)
rack (1.0.0)
rails (2.3.4, 2.3.3)
rake (0.8.7)
rubygems-update (1.3.5)
sqlite3-ruby (1.2.5)

Parto con il mio esempio:

nella mia directory di lavoro:

rails blog … ok
cd blog

blog>ruby script/generate scaffold Forum name:string description:text
… ok
blog>db:create … db/development.sqlite3 already exists
blog>db:migrate … ok
blog>ruby script/server … ok

a questo punto andando su localhost:3000:forums mi da il seguente
messaggio:

NoMethodError in Forums#index

Showing /app/views/layouts/forums.html.erb/ where line #12 raised:

|undefined method `^’ for “7”:String|

Extracted source (around line #12):

|9:
10:
11:
12:

<%= flash[:notice] %>


13:
14: <%= yield %>
15:
|

|RAILS_ROOT: D:/work/blog|

Application Trace http://localhost:3000/forums# | Framework Trace
http://localhost:3000/forums# | Full Trace
http://localhost:3000/forums#

|c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:46:in block in secure_compare' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:ineach’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:in
secure_compare' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:28:inverify’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:156:in
unmarshal' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:145:inload_session’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:62:in
block in load!' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:70:instale_session_check!’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:61:in
load!' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:28:in[]’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/flash.rb:163:in
flash' c:1:inflash’
D:/work/blog/app/views/layouts/forums.html.erb:12:in
_run_erb_app47views47layouts47forums46html46erb' D:/work/blog/app/controllers/forums_controller.rb:7:inindex’|

|c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:46:in block in secure_compare' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:ineach’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:in
secure_compare' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:28:inverify’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:156:in
unmarshal' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:145:inload_session’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:62:in
block in load!' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:70:instale_session_check!’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:61:in
load!' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:28:in[]’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/flash.rb:163:in
flash' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:inblock in render’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:301:in
with_template' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/template.rb:199:in
render_template' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:260:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:347:in
_render_with_layout' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:257:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:1250:in
render_for_file' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:951:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in
block in render_with_benchmark' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:inblock in ms’
c:/ruby191/lib/ruby/1.9.1/benchmark.rb:309:in realtime' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:inms’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in
render_with_benchmark' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:135:inblock in custom’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:179:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:179:inblock in respond’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:173:in
each' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:173:inrespond’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:107:in
respond_to' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:inperform_action’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/filters.rb:617:in
call_filters' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:inperform_action_with_filters’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in
block in perform_action_with_benchmark' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:inblock in ms’
c:/ruby191/lib/ruby/1.9.1/benchmark.rb:309:in realtime' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:inms’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in
perform_action_with_benchmark' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:inperform_action_with_rescue’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/flash.rb:146:in
perform_action_with_flash' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:inprocess’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/filters.rb:606:in
process_with_filters' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:391:inprocess’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:386:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb:437:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:87:in
dispatch' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:121:in_call’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:130:in
block in build_middleware_stack' c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:in
block in call' c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:34:incache’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:in
cache' c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:28:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/params_parser.rb:15:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:93:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/failsafe.rb:26:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in
block in call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:114:in
block in call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:34:inrun’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:108:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/rails/rack/static.rb:31:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in
block in call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:ineach’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/rails/rack/log_tailer.rb:17:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/content_length.rb:13:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:inservice’
c:/ruby191/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service' c:/ruby191/lib/ruby/1.9.1/webrick/httpserver.rb:70:inrun’
c:/ruby191/lib/ruby/1.9.1/webrick/server.rb:183:in `block in
start_thread’|

|c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:46:in block in secure_compare' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:ineach’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:in
secure_compare' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:28:inverify’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:156:in
unmarshal' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:145:inload_session’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:62:in
block in load!' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:70:instale_session_check!’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:61:in
load!' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:28:in[]’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/flash.rb:163:in
flash' c:1:inflash’
D:/work/blog/app/views/layouts/forums.html.erb:12:in
_run_erb_app47views47layouts47forums46html46erb' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:inblock in render’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:301:in
with_template' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/template.rb:199:in
render_template' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:260:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:347:in
_render_with_layout' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/base.rb:257:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:1250:in
render_for_file' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:951:inrender’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in
block in render_with_benchmark' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:inblock in ms’
c:/ruby191/lib/ruby/1.9.1/benchmark.rb:309:in realtime' c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:inms’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in
render_with_benchmark' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:135:inblock in custom’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:179:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:179:inblock in respond’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:173:in
each' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:173:inrespond’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/mime_responds.rb:107:in
respond_to' D:/work/blog/app/controllers/forums_controller.rb:7:inindex’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in
perform_action' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/filters.rb:617:incall_filters’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:in
perform_action_with_filters' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:inblock in perform_action_with_benchmark’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in
block in ms' c:/ruby191/lib/ruby/1.9.1/benchmark.rb:309:inrealtime’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in
ms' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:inperform_action_with_benchmark’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:in
perform_action_with_rescue' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/flash.rb:146:inperform_action_with_flash’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in
process' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/filters.rb:606:inprocess_with_filters’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:391:in
process' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/base.rb:386:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb:437:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:87:indispatch’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:121:in
_call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:130:inblock in build_middleware_stack’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:inblock in call’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
cache' c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:incache’
c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:28:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/params_parser.rb:15:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:93:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/failsafe.rb:26:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:inblock in call’
:8:in synchronize' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:114:in
block in call' c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:34:inrun’
c:/ruby191/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:108:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/rails/rack/static.rb:31:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in
block in call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:ineach’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/rails/rack/log_tailer.rb:17:incall’
c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/content_length.rb:13:in
call' c:/ruby191/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:inservice’
c:/ruby191/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service' c:/ruby191/lib/ruby/1.9.1/webrick/httpserver.rb:70:inrun’
c:/ruby191/lib/ruby/1.9.1/webrick/server.rb:183:in `block in
start_thread’|

Request

Parameters:

None

Show session dump http://localhost:3000/forums#


Response

Headers:

{“Cache-Control”=>“no-cache”,
“Content-Type”=>“text/html”}

n.b. se uso le versioni 2.3.3 funziona!!!

Qualche spiegazione in merito?

Grazie in anticipo.

Sergio.

Scusa ma non riesco proprio a farlo funzionare.
ad esempio:

work>rails myapp -d mysql

cd myapp

ruby script/server

http://localhost:3000

mi viene fuori gia’ questo errore :

Welcome aboard
You’re riding Ruby on Rails!
About your application’s environment

*We’re sorry, but something went wrong.

We’ve been notified about this issue and we’ll take a look at it
shortly.*

Getting started
Here’s how to get rolling:

  1. Use script/generate to create your models and controllers

    To see all available options, run it without parameters.

  2. Set up a default route and remove or rename this file

    Routes are set up in config/routes.rb.

  3. Create your database

    Run rake db:migrate to create your database. If you’re not using
    SQLite (the default), edit config/database.yml with your username and
    password.

Luca G. wrote:

E’ una questione di permessi su mysql, confronta la sua configurazione con
quello che trovi in config/database.yml

Luca


Sergio D.
Denver srl - Dronero
tel 0171 911383 fax 0171 911387
mailto:[email protected]
www.denverbike.com

AVVERTENZE AI SENSI DEL DECRETO LGS. 196/2003 SULLA PRIVACY.

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i, sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceveste questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema;
costituisce comportamento contrario ai principi dettati dal Decreto Lgs.
196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per
finalità diverse.

This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited (D.lgs 196/2003). If you received this
transmission in error, please inform the sender immediately and delete
the material.

E’ una questione di permessi su mysql, confronta la sua configurazione
con
quello che trovi in config/database.yml

Luca

Contolla se gli spazi prima di ‘host: localhost’ siano effettivamente
spazi,
oppure sia un tab. E’ importante, perché è un pre-requisito del formato
YAML.

Luca

Non riesco proprio a capire perche’ non funziona!!!
Procedo con ordine sperando che qualcuno mi aiuti.

  1. Seguendo questo link:

http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/

ho installato il tutto ottenendo:

D:\work\prova>ruby -v
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32]

D:\work\prova>gem list

*** LOCAL GEMS ***

actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
mysql (2.8.1.1)
rails (2.3.2)
rake (0.8.7)
sqlite3-ruby (1.2.4.1)


su Windows XP.
  1. Ho creato da mysql i database prova_development, prova_test,
    prova_production:
D:\work>mysql -uroot -p
Enter password: ************
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.0.85-community-nt MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input

statement.

mysql> create database prova_development;
Query OK, 1 row affected (0.00 sec)

mysql> create database prova_test;
Query OK, 1 row affected (0.03 sec)

mysql> create database prova_production;
Query OK, 1 row affected (0.00 sec)

mysql> exit
Bye
  1. ho creato il file prova.rb in questo modo:

#!/usr/bin/ruby -w

simple.rb - simple MySQL script using Ruby MySQL module

require “mysql”

begin
# connect to the MySQL server
dbh = Mysql.real_connect(“localhost”, “root”, “rootsd100357”,
“prova_development”)
# get server version string and display it
puts "Server version: " + dbh.get_server_info
rescue Mysql::Error => e
puts “Error code: #{e.errno}”
puts “Error message: #{e.error}”
puts “Error SQLSTATE: #{e.sqlstate}” if e.respond_to?(“sqlstate”)
ensure
# disconnect from server
dbh.close if dbh
end

  1. lanciando il comando:
    D:\work>ruby simple.rb
    Server version: 5.0.85-community-nt

mi sembra tutto ok!!!

  1. creo il database su rails:

D:\work>rails prova --database=mysql
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log

D:\work>

  1. controllo il file /config/database.yml:

MySQL. Versions 4.1 and 5.0 are recommended.

Install the MySQL driver:

gem install mysql

On Mac OS X:

sudo gem install mysql – --with-mysql-dir=/usr/local/mysql

On Mac OS X Leopard:

sudo env ARCHFLAGS="-arch i386" gem install mysql –

–with-mysql-config=/usr/local/mysql/bin/mysql_config

This sets the ARCHFLAGS environment variable to your native

architecture

On Windows:

gem install mysql

Choose the win32 build.

Install MySQL and put its /bin directory on your path.

And be sure to use new-style password hashing:

http://dev.mysql.com/doc/refman/5.0/en/old-client.html

development:
adapter: mysql
encoding: utf8
reconnect: false
database: prova_development
pool: 5
username: root
password:
host: localhost

Warning: The database defined as “test” will be erased and

re-generated from your development database when you run “rake”.

Do not set this db to the same as development or production.

test:
adapter: mysql
encoding: utf8
reconnect: false
database: prova_test
pool: 5
username: root
password:
host: localhost
production:
adapter: mysql
encoding: utf8
reconnect: false
database: prova_production
pool: 5
username: root
password:
host: localhost

  1. creo il database con rake:

D:\work\prova>rake db:create
(in D:/work/prova)
Couldn’t create database for {“adapter”=>“mysql”, “encoding”=>“utf8”,
"reconnect
"=>false, “database”=>“prova_development”, “pool”=>5,
“username”=>“root”, “passw
ord”=>nil, “host”=>“localhost”}, charset: utf8, collation:
utf8_general_ci (if y
ou set the charset manually, make sure you have a matching collation)

giustamente non mi fa eseguire il comando. !!!

  1. modifico il file database.yml

MySQL. Versions 4.1 and 5.0 are recommended.

Install the MySQL driver:

gem install mysql

On Mac OS X:

sudo gem install mysql – --with-mysql-dir=/usr/local/mysql

On Mac OS X Leopard:

sudo env ARCHFLAGS="-arch i386" gem install mysql –

–with-mysql-config=/usr/local/mysql/bin/mysql_config

This sets the ARCHFLAGS environment variable to your native

architecture

On Windows:

gem install mysql

Choose the win32 build.

Install MySQL and put its /bin directory on your path.

And be sure to use new-style password hashing:

http://dev.mysql.com/doc/refman/5.0/en/old-client.html

development:
adapter: mysql
encoding: utf8
reconnect: false
database: prova_development
pool: 5
username: root
password: rootsd100357
host: localhost

Warning: The database defined as “test” will be erased and

re-generated from your development database when you run “rake”.

Do not set this db to the same as development or production.

test:
adapter: mysql
encoding: utf8
reconnect: false
database: prova_test
pool: 5
username: root
password: rootsd100357
host: localhost

production:
adapter: mysql
encoding: utf8
reconnect: false
database: prova_production
pool: 5
username: root
password: rootsd100357
host: localhost

  1. riprovo con rake:

D:\work\prova>rake db:create
(in D:/work/prova)
rake aborted!
syntax error on line 24, col 2: ` host: localhost’

(See full trace by running task with --trace)

!!!

D:\work\prova>rake db:create --trace
(in D:/work/prova)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
rake aborted!
syntax error on line 24, col 2: host: localhost' c:/ruby19/lib/ruby/1.9.1/yaml.rb:133:inload’
c:/ruby19/lib/ruby/1.9.1/yaml.rb:133:in load' c:/ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/initializer.rb:880:indataba
se_configuration’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/databases.rake:4:in
bl ock (2 levels) in <top (required)>' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:incall’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in block in execu te' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:ineach’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in
execute' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:597:inblock
in invok
e_with_call_chain’
c:/ruby19/lib/ruby/1.9.1/monitor.rb:190:in mon_synchronize' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_ca
ll_chain’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:607:in block in invok e_prerequisites' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:ineach’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in
invoke_prerequ isites' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:596:inblock
in invok
e_with_call_chain’
c:/ruby19/lib/ruby/1.9.1/monitor.rb:190:in mon_synchronize' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_ca
ll_chain’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:583:in
invoke' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in block (2 leve ls) in top_level' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:ineach’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in block in top_ level' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exce
ption_handling’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2023:in
top_level' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2001:inblock
in run’

c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exce ption_handling' c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:inrun’
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in <top (required)>' c:/Ruby19/bin/rake:19:inload’
c:/Ruby19/bin/rake:19:in `’

D:\work\prova>

!!!

Potete cercare di aiutarmi !!!

Grazie, Sergio.

Non so piu’ cosa fare.
Non ho messo degli spazi…
mida errore su encoding…
hai magari un file yml da passarmicome allegato???
Io lo scrivo con blocco note!!!
caio, Sergio.

Luca G. wrote:

Contolla se gli spazi prima di ‘host: localhost’ siano effettivamente spazi,
oppure sia un tab. E’ importante, perché è un pre-requisito del formato
YAML.

Luca


Sergio D.
Denver srl - Dronero
tel 0171 911383 fax 0171 911387
mailto:[email protected]
www.denverbike.com

AVVERTENZE AI SENSI DEL DECRETO LGS. 196/2003 SULLA PRIVACY.

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i, sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceveste questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema;
costituisce comportamento contrario ai principi dettati dal Decreto Lgs.
196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per
finalità diverse.

This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited (D.lgs 196/2003). If you received this
transmission in error, please inform the sender immediately and delete
the material.

potresti fare in questo modo:

  • crea una app rails temporanea e riprendi il file database.yml da lì ->
    metodo casereccio sempre efficace =)
  • edita il file in modo chirurgico -> modifica solo i valori dei campi
    evitando pericolosi copia/incolla

in teoria dovrebbe funzionare =)

ad ogni modo ti consiglio vivamente di usare un editor migliore di
Notepad (definirlo editor è un po’ eccessivo =P), se vuoi rimanere sul
minimale, prova Notepad++, altrimenti ci sono ottimi IDE per Ruby e
Rails come Netbeans (versione con Ruby) o Aptana RadRails.

ciao,
A.

Sergio ha scritto:

Ormai sono 8 giorni che mi scontro con questo problema…
La compilazione del kernel linux in gentoo a confronto e’ una
passeggiata…
Penso che lascero’ stare rails e tuuto il resto.
Non e’ possibile non riuscire in una cosa cosi’ banale.

Sergio.

Luca G. wrote:

Contolla se gli spazi prima di ‘host: localhost’ siano effettivamente spazi,
oppure sia un tab. E’ importante, perché è un pre-requisito del formato
YAML.

Luca


Sergio D.
Denver srl - Dronero
tel 0171 911383 fax 0171 911387
mailto:[email protected]
www.denverbike.com

AVVERTENZE AI SENSI DEL DECRETO LGS. 196/2003 SULLA PRIVACY.

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i, sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceveste questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema;
costituisce comportamento contrario ai principi dettati dal Decreto Lgs.
196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per
finalità diverse.

This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited (D.lgs 196/2003). If you received this
transmission in error, please inform the sender immediately and delete
the material.

Utilzzo Notepad++
e ho creato un’applicazione temporanea dove ho cambiato soltanto user,
password e localhost.
senza copia e imncolla.
Niente da fare!!!

Hai per caso un file yaml da passarmi come allegato???

la mia mail [email protected]

Sergio.

Andrea P. wrote:

Notepad (definirlo editor è un po’ eccessivo =P), se vuoi rimanere sul

Non ho messo degli spazi…

oppure sia un tab. E’ importante, perché è un pre-requisito del formato
Ml mailing list
[email protected]
http://lists.ruby-it.org/mailman/listinfo/ml


Sergio D.
Denver srl - Dronero
tel 0171 911383 fax 0171 911387
mailto:[email protected]
www.denverbike.com

AVVERTENZE AI SENSI DEL DECRETO LGS. 196/2003 SULLA PRIVACY.

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i, sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceveste questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema;
costituisce comportamento contrario ai principi dettati dal Decreto Lgs.
196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per
finalità diverse.

This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited (D.lgs 196/2003). If you received this
transmission in error, please inform the sender immediately and delete
the material.

Sergio ha scritto:

Ormai sono 8 giorni che mi scontro con questo problema…

giusto per curiosità, ma hai provato anche su altri sistemi oltre a
windows?

La compilazione del kernel linux in gentoo a confronto e’ una passeggiata…

la compilazione di un kernel linux richiede più o meno le stesse
conoscenze tra una distro e l’altra. anzi, nella peggiore ipotesi su
gentoo puoi usare genkernel, e poi lo rifinisci con calma =)

Penso che lascero’ stare rails e tuuto il resto.
Non e’ possibile non riuscire in una cosa cosi’ banale.

anche gli errori banali sono quelli che non si riescono a vedere al
primo colpo =) è un fatto accertato che rails funzioni su windows, linux
e mac, certamente su windows si possono incontrare problemi
noiosi/rognosi ma nulla che non si possa risolvere.

ti mando un file yaml in privato, se non funziona nemmeno così, prova a
reinstallare da zero.

ciao,
A.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs