How to install F->IT

168 views
Skip to first unread message

Justin

unread,
Nov 10, 2009, 11:07:10 PM11/10/09
to f-it
1. Install Ruby on Rails 2.0.2.
2. Check out F->IT from: https://f-it.googlecode.com/svn/trunk
3. Download and update JavaScriptMVC
4. Copy JavaScriptMVC's jmvc folder into public/jmvc in F->IT.
5. Start a rails server.
6. Enjoy

Barton

unread,
Nov 24, 2009, 11:17:09 AM11/24/09
to f-it
Hi Justin,

I'm having problems running f-it. From the command line:

-----------------------------------------------
c:\Users\barton\source\f-it>ruby script\server webrick
./script/../config/boot.rb:26:Warning: Gem::SourceIndex#search support
for Strin
g patterns is deprecated
=> Booting WEBrick...


*******************************************************************
* config.breakpoint_server has been deprecated and has no
effect. *

*******************************************************************

Rails Error: Unable to access log file. Please ensure that c:/Users/
barton/sourc
e/f-it/log/development.log exists and is chmod 0666. The log level has
been rais
ed to WARN and the output directed to STDERR until the problem is
fixed.
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2009-11-24 10:00:32] INFO WEBrick 1.3.1
[2009-11-24 10:00:32] INFO ruby 1.8.6 (2008-08-11) [i386-mswin32]
[2009-11-24 10:00:32] INFO WEBrick::HTTPServer#start: pid=7276
port=3000


And then in the browser at address http://localhost:3000/

MissingSourceFile in FtpController#index

no such file to load -- json

RAILS_ROOT: C:/Users/barton/source/f-it
Application Trace | Framework Trace | Full Trace

C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
app/controllers/ftp_controller.rb:3
-e:2:in `load'
-e:2

C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:203:in
`load_without_new_constant_marking'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:203:in `load_file'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:202:in `load_file'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:94:in `require_or_load'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:248:in `load_missing_constant'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:453:in `const_missing'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:465:in `const_missing'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/inflector.rb:257:in `constantize'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/string/inflections.rb:148:in `constantize'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/routing.rb:1426:in `recognize'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:170:in `handle_request'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:115:in `dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:126:in `dispatch_cgi'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:9:in `dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
112:in `handle_dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
78:in `service'
C:/tools/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/tools/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
62:in `dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/
webrick.rb:66
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/
server.rb:39
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
script/server:3

C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
app/controllers/ftp_controller.rb:3
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:203:in
`load_without_new_constant_marking'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:203:in `load_file'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:202:in `load_file'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:94:in `require_or_load'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:248:in `load_missing_constant'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:453:in `const_missing'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:465:in `const_missing'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/inflector.rb:257:in `constantize'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/string/inflections.rb:148:in `constantize'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/routing.rb:1426:in `recognize'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:170:in `handle_request'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:115:in `dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:126:in `dispatch_cgi'
C:/tools/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:9:in `dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
112:in `handle_dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
78:in `service'
C:/tools/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/tools/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/tools/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
62:in `dispatch'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/
webrick.rb:66
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/
server.rb:39
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
script/server:3
-e:2:in `load'
-e:2

This error occurred while loading the following files:
json


----------------

Not sure what to do as I'm not familiar w/ ruby.

Thanks in advance,


Barton

Justin

unread,
Nov 24, 2009, 11:19:24 AM11/24/09
to f-it
create a log folder in the top level directory

On Nov 24, 10:17 am, Barton <bartonhamm...@gmail.com> wrote:
> Hi Justin,
>
> I'm having problems running f-it.  From the command line:
>
> -----------------------------------------------
> c:\Users\barton\source\f-it>ruby script\server webrick
> ./script/../config/boot.rb:26:Warning: Gem::SourceIndex#search support
> for Strin
> g patterns is deprecated
> => Booting WEBrick...
>
> *******************************************************************
>       * config.breakpoint_server has been deprecated and has no
> effect. *
>
> *******************************************************************
>
> Rails Error: Unable to access log file. Please ensure that c:/Users/
> barton/sourc
> e/f-it/log/development.log exists and is chmod 0666. The log level has
> been rais
> ed to WARN and the output directed to STDERR until the problem is
> fixed.
> => Rails application started onhttp://0.0.0.0:3000
> => Ctrl-C to shutdown server; call with --help for options
> [2009-11-24 10:00:32] INFO  WEBrick 1.3.1
> [2009-11-24 10:00:32] INFO  ruby 1.8.6 (2008-08-11) [i386-mswin32]
> [2009-11-24 10:00:32] INFO  WEBrick::HTTPServer#start: pid=7276
> port=3000
>
> And then in the browser at addresshttp://localhost:3000/
> `gem_original_require' ...
>
> read more »

Barton

unread,
Nov 24, 2009, 11:40:05 AM11/24/09
to f-it
Hi Justin,

I created the development.log file. After restarting the server and
hitting the page, it remains empty.

Starting the app w/ ruby start\server webrick there are no errors.

Hitting the page http://localhost:3000/ has errors, namely:


MissingSourceFile in FtpController#index

no such file to load -- json


C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/tools/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
C:/tools/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
app/controllers/ftp_controller.rb:3
-e:2:in `load'
-e:2


This error occurred while loading the following files:
json




On Nov 24, 10:17 am, Barton <bartonhamm...@gmail.com> wrote:
> Hi Justin,
>
> I'm having problems running f-it.  From the command line:
>
> -----------------------------------------------
> c:\Users\barton\source\f-it>ruby script\server webrick
> ./script/../config/boot.rb:26:Warning: Gem::SourceIndex#search support
> for Strin
> g patterns is deprecated
> => Booting WEBrick...
>
> *******************************************************************
>       * config.breakpoint_server has been deprecated and has no
> effect. *
>
> *******************************************************************
>
> Rails Error: Unable to access log file. Please ensure that c:/Users/
> barton/sourc
> e/f-it/log/development.log exists and is chmod 0666. The log level has
> been rais
> ed to WARN and the output directed to STDERR until the problem is
> fixed.
> => Rails application started onhttp://0.0.0.0:3000
> => Ctrl-C to shutdown server; call with --help for options
> [2009-11-24 10:00:32] INFO  WEBrick 1.3.1
> [2009-11-24 10:00:32] INFO  ruby 1.8.6 (2008-08-11) [i386-mswin32]
> [2009-11-24 10:00:32] INFO  WEBrick::HTTPServer#start: pid=7276
> port=3000
>
> And then in the browser at addresshttp://localhost:3000/
> `gem_original_require'...
>
> read more »

Justin Meyer

unread,
Nov 24, 2009, 11:42:45 AM11/24/09
to f-...@googlegroups.com
install the json gem.


Justin Meyer

Jupiter IT Solutions
847-924-6039
justin...@gmail.com
AOL: jusbarmey



--

You received this message because you are subscribed to the Google Groups "f-it" group.
To post to this group, send email to f-...@googlegroups.com.
To unsubscribe from this group, send email to f-it+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/f-it?hl=en.



Barton

unread,
Nov 24, 2009, 11:52:16 AM11/24/09
to f-it
Hi Justin,

Still same error:

c:\Users\barton\source\f-it>gem install json
Successfully installed json-1.2.0-x86-mswin32

Restarted webrick, same error wrt json as shown below on http://localhost:3000.

Barton

On Nov 24, 10:42 am, Justin Meyer <justinbme...@gmail.com> wrote:
> install the json gem.
>
> Justin Meyer
>
> Jupiter IT Solutions
> 847-924-6039
> justinbme...@gmail.com
> AOL: jusbarmey
>
> On Tue, Nov 24, 2009 at 10:40 AM, Barton <bartonhamm...@gmail.com> wrote:
> > Hi Justin,
>
> > I created the development.log file. After restarting the server and
> > hitting the page, it remains empty.
>
> > Starting the app w/ ruby start\server webrick there are no errors.
>
> > Hitting the pagehttp://localhost:3000/ has errors, namely:
> ...
>
> read more »

Justin Meyer

unread,
Nov 24, 2009, 11:55:29 AM11/24/09
to f-...@googlegroups.com
start a command line, try to require json, does that work?

Justin Meyer

Jupiter IT Solutions
847-924-6039
justin...@gmail.com
AOL: jusbarmey


> ...
>
> read more »

Barton Hammond

unread,
Nov 24, 2009, 11:57:58 AM11/24/09
to f-...@googlegroups.com
I don't know how to grok that into ruby steps.  Could you be a little more specific?

Justin Meyer

unread,
Nov 24, 2009, 11:57:57 AM11/24/09
to f-...@googlegroups.com
ruby script\console
require 'json'
=> []

Justin Meyer

Jupiter IT Solutions
847-924-6039
justin...@gmail.com
AOL: jusbarmey


On Tue, Nov 24, 2009 at 10:55 AM, Justin Meyer <justin...@gmail.com> wrote:

Justin Meyer

unread,
Nov 24, 2009, 11:58:52 AM11/24/09
to f-...@googlegroups.com
and to make sure, after require 'json', you should be able to do:

{}.to_json
=> "{}"

Justin Meyer

Jupiter IT Solutions
847-924-6039
justin...@gmail.com
AOL: jusbarmey


Barton Hammond

unread,
Nov 24, 2009, 12:04:49 PM11/24/09
to f-...@googlegroups.com
Hi Justin,

That appears to be fine.


c:\Users\barton\source\f-it>ruby script\console

./script/../config/boot.rb:26:Warning: Gem::SourceIndex#search support for String patterns is deprecated
Loading development environment (Rails 2.0.2)
c:/Users/barton/source/f-it/config/boot.rb:26:Warning: Gem::SourceIndex#search support for String patterns is deprecated


      *******************************************************************
      * config.breakpoint_server has been deprecated and has no effect. *
      *******************************************************************

>> require 'json'
=> []
>>

Barton Hammond

unread,
Nov 24, 2009, 12:08:33 PM11/24/09
to f-...@googlegroups.com
Yes - that worked exactly as you showed.

Justin Meyer

unread,
Nov 24, 2009, 12:34:52 PM11/24/09
to f-...@googlegroups.com
Then I have no idea why your server would be breaking on that line.  Your code is breaking on:

require 'json'

But script/console, essentially sets up an irb to act just like a webrick server.  So, if script/console works, but the server breaks I am confused.

It shouldn't matter, but close the console, and restart the server in a new one.

Justin Meyer

Jupiter IT Solutions
847-924-6039
justin...@gmail.com
AOL: jusbarmey


Barton Hammond

unread,
Nov 24, 2009, 12:46:33 PM11/24/09
to f-...@googlegroups.com
Hi Justin,

Even after rebooting, no change.

But I just downloaded and fuzted w/ Aptana Studio and now have it running within that environment.

Thanks for all your help. 

Barton

Barton Hammond

unread,
Nov 24, 2009, 11:06:41 PM11/24/09
to f-...@googlegroups.com
Well, now in run time I get the following mesage when trying to connect:

F->IT can't connect to your server. Our current theory is that this is due to Suse Linux networking drivers that don't work with non-ASCI character sets. F->IT handles these FTP servers perfectly when running from windows.We are trying hard to figure this issue out. If you are connecting to a US based FTP server and getting this error, please let us know!

Please advise,


Barton

Justin Meyer

unread,
Nov 24, 2009, 11:09:46 PM11/24/09
to f-it
Are you running windows?  Have you been able to connect?  Are you putting in the right address:port?  Thanks,

Justin Meyer

Jupiter Consulting
\Development\Training\Support
847-924-6039
justin...@gmail.com

Barton Hammond

unread,
Nov 25, 2009, 6:49:34 AM11/25/09
to f-...@googlegroups.com
Hi Justin,

1. Yes - Vista
2. I can only get the main page up from w/in Aptana Studio but when I provide the ftp site and anonymous credentials and submit, I get the message below.
3. I assume I am using the right address:port since the page comes up.

Regards,

Barton

Barton Hammond

unread,
Nov 25, 2009, 7:07:52 AM11/25/09
to f-...@googlegroups.com
Making a little progress..within RadRails Studio, I'm using http://127.0.0.1:3000 and when I submit ftp.mozilla.org, I get to the next screen as shown in attachement.  The tree component does not complete loading or appear to load at all.
SecondScreen.jpg

Barton Hammond

unread,
Nov 25, 2009, 7:16:26 AM11/25/09
to f-...@googlegroups.com
Hi Justin,

Sometimes I hate Windoz.   After reboot  I am now able to bring up f-it from the command line and I see the tutorial and all.  Thanks very much for helping.

Regards,

Barton
Reply all
Reply to author
Forward
0 new messages