routing problem with startpage in rails3
- by DannyRe
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!!