The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to debug Ruby on Rails Apps

Discussion in 'General Discussion' started by SoftDux, Nov 6, 2008.

  1. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi all,

    A client of ours setup a ROR app a few months ago, and we had to transfer his account to a new server, and now the ROR app isn't working.

    How can I debug it to see what's wrong?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I know one common snag is compiler support must be enabled for RoR apps to run. If you have disabled compiler support via WHM's Security Center, that would explain why the RoR app is not able to run.
     
  3. FS_Greg

    FS_Greg Member
    PartnerNOC

    Joined:
    Jun 27, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I just transferred a RoR account from another cPanel box. After getting RoR installed, and ensuring all of the same gems are installed, my app isn't functioning as it should. The main page works fine, but all links on the page error out.

    Here's what I see logged right after trying to load a page:

    Processing StoreController#show_by_tags (for 70.140.194.27 at 2008-11-10 16:33:24) [GET]
    Session ID: fe4d1bcd68481d40e7332654759a90aa
    Parameters: {"action"=>"show_by_tags", "tags"=>["ACCESSORIES"], "controller"=>"store"}
    Rendering template within layouts/main
    Rendering store/index


    ActionView::TemplateError (Expected /home/scruggs/public_html/scruggs/vendor/plugins/substruct/app/models/image.rb to define Image) on line #2 of store/_product.rhtml:
    1: <%
    2: @image = product.images[0]
    3: if @image then
    4: image_url = @image.public_filename:)small)
    5: else

    Can anyone point me in the right direction? It was working on another cPanel box, not sure why it's not working here :(
     
  4. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi Dave,

    When I create a new project for the same user account, the new project works. And I can also confirm that the compilers are disabled on the old server, so I doubt if that's the problem.

    Is there any ways to debug this problem? The logs doesn't help much.


    P.S. FS_Greg, please don't hi-jack a thread like this. Our problems are not totally related, and it's better to have a seperate thread in order to get the best help :)
     
Loading...

Share This Page