Ruby Forum Rails deployment > problem with deploying a facebook application

Posted by Noha Mostafa (noham)
on 31.01.2008 16:54
Hi all,
 M having a problem deploying a ruby on rails application on the
production server  tthough I've successfully deployed another 1 on the
same before, and though the neww app is successfully running on the
developer's server.

After lots of trials, setting files permissions, configuring
enviroment.rb to point to the server's rails version , configuring the
ruby path in dispatch.fcgi, , I get the bowser error, "Something Went
Wrong". Checking the fastcgi.crash.log file I find the following error:

[31/Jan/2008:16:00:58 :: 11562] Dispatcher failed to catch: private
method `split' called for nil:NilClass (NoMethodError)
  /usr/local/lib/ruby/1.8/cgi.rb:897:in `parse'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in
`initialize_query'
  /usr/local/lib/ruby/1.8/cgi.rb:2270:in `initialize'
  /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:594:in `each_cgi'
  /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:141:in
`process_each_request!'
  /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:55:in
`process!'
  /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:25:in
`process!'
  dispatch.fcgi:6
almost killed by this error
[31/Jan/2008:16:00:58 :: 11562] Dispatcher failed to catch: private
method `split' called for nil:NilClass (NoMethodError)
  /usr/local/lib/ruby/1.8/cgi.rb:897:in `parse'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in
`initialize_query'
  /usr/local/lib/ruby/1.8/cgi.rb:2270:in `initialize'
  /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:594:in `each_cgi'
  /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:141:in
`process_each_request!'
  /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:55:in
`process!'
  /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:25:in
`process!'
  dispatch.fcgi:6
killed by this error


my new dispatch.fcgi file content is:
#!/usr/local/lib/env ruby

require File.dirname(__FILE__) + "/config/environment"
require 'fcgi_handler'

RailsFCGIHandler.process!



Some1 plz advise as m starting to turn crazy, the only diff between this
app and the older is that it contains facebook pluging but the plugin is
properly located in the vendor folder, and all it's related errors are
now fixed!!

Any1 has any clue??!!
Posted by Dustin Anderson (dkanders)
on 05.02.2008 20:51
> Some1 plz advise as m starting to turn crazy, the only diff between this
> app and the older is that it contains facebook pluging but the plugin is
> properly located in the vendor folder, and all it's related errors are
> now fixed!!

What plugin are you using? Rfacebook or Facebooker?  I highly recommend 
using Facebooker over Rfacebook.
Posted by Scott Ballantyne (Guest)
on 08.02.2008 19:24
(Received via mailing list)
why exactly do you highly recommend Facebooker over RFacebook, we are 
doing
a site for facebook and are having a lot of trouble with the Rfacebook
plugin, just wanting to find out if your problems are like ours.

On Feb 6, 2008 3:51 AM, Dustin Anderson 
<ruby-forum-incoming@andreas-s.net>
Posted by Noha Mostafa (noham)
on 12.02.2008 12:01
Scott Ballantyne wrote:
> why exactly do you highly recommend Facebooker over RFacebook, we are 
> doing
> a site for facebook and are having a lot of trouble with the Rfacebook
> plugin, just wanting to find out if your problems are like ours.
> 
> On Feb 6, 2008 3:51 AM, Dustin Anderson 
> <ruby-forum-incoming@andreas-s.net>

m using Rfacebook, but why hould the other be better? will give it a try 
anyway , thk uu Dustin...

hey Scott, what sort of problems r u facing, mayb we can share any 
experience?
Posted by Scott Ballantyne (Guest)
on 13.02.2008 13:21
(Received via mailing list)
using ajax first of all.  facebook mangles the hell out of our ajax. 
also,
we are using haml, and the syntax of fbml is making haml a little 
unhappy.
But I'm not the lead dev on this project.  I will check in with my 
colleague
about the specifics and get back to you.

On Feb 12, 2008 7:01 PM, Noha Mostafa 
<ruby-forum-incoming@andreas-s.net>
Posted by Yagnesh Vaidh (yagnesh)
on 17.04.2008 09:11
I m also facing to see my rails application on facebook.
I used rfacebook with rfacebooker plugin.
canu guide my what is the my next step for seeing the Ror application on 
facebook.
Bacoz i m new in it.
So i have problem to configure the Ror application on facebook.
can u guide me with proper steps?

Thanks in advance