Action Controller : Exception caught

11 views
Skip to first unread message

LRLMendes

unread,
May 26, 2009, 4:54:25 PM5/26/09
to Ruby on Rails: Goldberg
Hi,

I´m newer in RoR, and trying install Goldberg to use in:
Windows XP
Postgres 8.3
Ruby 1.8.6-26
Rails 2.3.2

I follow instructions to install, after this i verify if "rake" create
Goldberg Database, it´s ok.
But, now when a type "http://localhost:3000/"
Appears the error:

Action Controller : Exception caught

Errno::EINVAL in Goldberg/content_pages#view_default

Showing C:/Projetos RoR/erp/vendor/plugins/goldberg/app/views/goldberg/
menu_items/_suckerfish.rhtml where line # raised:

Invalid argument - ./C:/Projetos RoR/erp/vendor/plugins/goldberg/app/
views/goldberg/menu_items/_suckerfish.rhtml
Extracted source (around line #):
Trace of template inclusion: app/views/layouts/application.html.erb
RAILS_ROOT: C:/Projetos RoR/erp

Anybody can help me ????

Thanks,

Luciano




After a try start Webrick Server, it´s ok
but wheen

Tony White

unread,
May 26, 2009, 6:37:45 PM5/26/09
to rubyonrail...@googlegroups.com
Hi Luciano,

Just a guess: Could it be because you have a space in the path? -
"Projetos RoR".

Try renaming that directory to "Projetos_RoR" - replacing the 'space'
with an underscore.

HTH,
Tony


2009/5/26 LRLMendes <lrlm...@bol.com.br>:
--
Tony White

LRLMendes

unread,
May 26, 2009, 8:16:39 PM5/26/09
to Ruby on Rails: Goldberg
Tony,

I create another project, with path c:\ror\erp and change theme to
Default, and continue with error.
Is it normal the argument starts with "./C:/ror/erp ...." in Windows?

Thanks,

Luciano

On 26 maio, 19:37, Tony White <tony.mzu...@gmail.com> wrote:
> Hi Luciano,
>
> Just a guess: Could it be because you have a space in the path? -
> "Projetos RoR".
>
> Try renaming that directory to "Projetos_RoR" - replacing the 'space'
> with an underscore.
>
> HTH,
> Tony
>
> 2009/5/26 LRLMendes <lrlmen...@bol.com.br>:
> Tony White- Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

Tony White

unread,
May 27, 2009, 3:05:30 AM5/27/09
to rubyonrail...@googlegroups.com
Hi Luciano,

Sorry, I'm not an expert with Windows. Let's hope someone else can help you.

Tony

2009/5/27 LRLMendes <lrlm...@bol.com.br>:
--
Tony White
SpeechNet Technologies Ltd

LRLMendes

unread,
May 27, 2009, 7:49:08 AM5/27/09
to Ruby on Rails: Goldberg
The error continues .....

I try change in #{RAILS_ROOT} in helper.rb to full path, and continue
with error.
I think this error occours when helper.rb rendering
"goldberg_main_menu", perhaps I need change any configuration to
remove "./" in path parameter?

I´m wrong?

P.S. Tony, many tks to your help!!! I try install Linux, but here in
Brazil evebody likes work with Windows :( :( :(

On 27 maio, 04:05, Tony White <tony.mzu...@gmail.com> wrote:
> Hi Luciano,
>
> Sorry, I'm not an expert with Windows.  Let's hope someone else can help you.
>
> Tony
>
> 2009/5/27 LRLMendes <lrlmen...@bol.com.br>:
> SpeechNet Technologies Ltd- Ocultar texto das mensagens anteriores -

LRLMendes

unread,
May 27, 2009, 12:05:46 PM5/27/09
to Ruby on Rails: Goldberg
Friends,

I think a "anormal" solution to my problem:

In helper.rb change:

render :file => "#{RAILS_ROOT}/vendor/plugins/goldberg/app/views/
goldberg/menu_items/_suckerfish.rhtml", :use_full_path =>
false, :locals => {:items => Goldberg.menu.get_menu(0)}

to

render :file => "vendor/plugins/goldberg/app/views/goldberg/menu_items/
_suckerfish.rhtml", :use_full_path => false, :locals => {:items =>
Goldberg.menu.get_menu(0)}

because in any case, when "redering", rails put "./" before path.

Well, if anybody have a opnion or suggestion about this solution,
please put in this topic, to help our friends.

Thanks.
> > - Mostrar texto das mensagens anteriores -- Ocultar texto das mensagens anteriores -

Tony White

unread,
May 27, 2009, 1:20:23 PM5/27/09
to rubyonrail...@googlegroups.com
Hi Luciano,

Have a look at:

http://www.ubuntu-br.org/

and enjoy freedom - and no more visits from the microsoft police! ;)

Tony

2009/5/27 LRLMendes <lrlm...@bol.com.br>:


> P.S. Tony, many tks to your help!!! I try install Linux, but here in
> Brazil evebody likes work with Windows :( :( :(

--
Tony White

Reply all
Reply to author
Forward
0 new messages