routing problem with startpage in rails3

Posted by DannyRe on Stack Overflow See other posts from Stack Overflow or by DannyRe
Published on 2011-01-06T11:24:49Z Indexed on 2011/01/07 2:53 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

Hey,

I deleted the Index.html in my /public/ folder. I added a "application" folder in my views. In it I put a new index.html.erb. This I want to be my startpage/homepage.

In my new "index.html.erb" I set:

link_to 'sign in', {:controller => 'devise/sessions', :action => 'new'}

But it redirects me to the "application#index".

I set root :to => "application#index

How can I set this to route it to "posts#index" after I sign in, for example?

Is there a chance to use .erb oder .haml in my /public/index.html?

Many thanks!!

© Stack Overflow or respective owner

Related posts about routing

Related posts about routes