I am creating rails mobile application using jQuery for mobile... and I am using devise for authentication, and I have created new controller called user controller to create userprofile page... until I create usercontroller devise was working properly but after creating user controller, after logging in login
link will become logout
link, if I refresh the page it will give a link to login but once again if I refresh the page it will show link to logout.
here is my routes
Kdproject::Application.routes.draw do
root :to => 'home#index'
devise_for :users, :path_prefix => 'd'
namespace :user do
root :to => "pages#viewprofile"
end
match '/index', :to => 'users#index'
match '/viewprofile', :to =>'pages#viewprofile'
Please help me to come out of this...