Can Anybody Help!? Ruby On Rails problems!

Discussion in 'Ruby' started by peeg, Mar 15, 2007.

  1. #1
    I have a site http://recipepub.com and I want to add a blog to it. Now I've tried adding a wordpress blog, but it doesn't work and now I've just tried to add a TYPO blog, but that also doesn't work!

    At http://recipepub.com/chefblog where the blog is installed,

    This error appears:
    Routing Error

    Recognition failed for "/chefblog"

    Any ideas on the problem and how it can be fixed?

    Thanks in advance

    Rich
     
    peeg, Mar 15, 2007 IP
  2. mssarath

    mssarath Well-Known Member

    Messages:
    137
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #2
    simple way is you can install blog as subdomain.

    the error is coz , rails standard format is
    servername/controllername/actionname/parameters

    you installed your blog in chefblog , so the folder is named yourserver/chefblog

    in rails conversion, it looks for a controller named chefblog and it didn't find any and give back an error message.

    try reinstalling WP, you have option to make it a subdomain or folder , make it a subdomain ie, http://www.chefblog.yourserver instead of http://www.yourserver/chefblog

    or
    you can tweak some settings in enviornment.rb to make it works.
     
    mssarath, Mar 18, 2007 IP
  3. peeg

    peeg Peon

    Messages:
    1,064
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks man!

    I actually tried making a subdomain but the guy who sold me the site actually said it won't work because it has something called a "simlink" or something?

    Any ideas?
     
    peeg, Mar 18, 2007 IP
  4. mssarath

    mssarath Well-Known Member

    Messages:
    137
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #4
    Ok, i will give few ways try it hope all will work for you

    copy this code and name it chefblog_controller.rb

    #---------- code start here -----------------

    class ChefController < ApplicationController
    def index
    redirect_to "/chefblog/index.php"
    end
    end
    #------------ ends here ---------------

    upload it to apps/controller directory
     
    mssarath, Mar 18, 2007 IP
  5. mssarath

    mssarath Well-Known Member

    Messages:
    137
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #5
    or you can make an index.html in chefblog directory which redirect to index.php . copy paste following code and save it as index.html and upload to chefblog directory

    <meta HTTP-EQUIV="REFRESH" content="0; url="http://recipepub.com/chefblog/index.php">

    hope it any of it works.
     
    mssarath, Mar 18, 2007 IP
  6. peeg

    peeg Peon

    Messages:
    1,064
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for your help

    It's all worked out now thankfully.

    Rich
     
    peeg, Mar 19, 2007 IP
  7. mssarath

    mssarath Well-Known Member

    Messages:
    137
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #7
    happy to hear that.
     
    mssarath, Mar 19, 2007 IP