top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to redirect to a specific page when using Rails

0 votes

I have Rails version 2.3.8.I am using Netbeans 6.9.1 as IDE. I want to redirect localhost:3000 to a specific page. I opened routes.rb file and uncommented the line

 map.root :controller => "Welcome"

I created a controller named Welcome and a view named index. I also deleted the default index file as suggested in some of the websites.However, the page is not getting redirected to new index page. What is the problem??

posted Jul 21, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Did you remove public/index.html?

1 Answer

+1 vote

If it is not getting redirected then what do you see instead?

Also what do you see in development.log when you try to go to the page.

If you are new to Rails then if you have not already done so then work right through a good tutorial such as (which is free to use online). That will show you the basics of rails.

answer Jul 21, 2013 by anonymous
Similar Questions
+1 vote

how to use single login page for users in four models when using Ruby on Rails

+1 vote

Currently I am working on a app, so far I have User (with devise) which are able to create projects. So, if user1 create project A and project B I want him, to be able to assign user2 with role admin on project A, and user2 with moderator admin on project B. I was thinking in creating a UserRoleProject link table, is it a good idea? Also I intend to use CanCan for the authorisation.

+2 votes

I have found a html template where I some pages need specific css files and of course there are some common css files.

How can I best deal with it ?

0 votes

I need to upload files in my rails application.the type of the files should be pdf,xls,word.After that i need to download them from the view page.plz help me in this regard.

0 votes

I am building a multi-page rails web app and am struggling with finding a good JavaScript framework to use. I could use jQuery for all the low-level DOM manipulations but would like to benefit from the structure of a good framework.