我在我的网站登陆页面上创建了一个定制的标志。但是,由于这与根路径相同,一个已登录的用户仍然能够通过地址栏看到它。
如何在用户中重定向登录页面?
更新:解决方案
routes.rb
authenticated :user do
root :to => 'pages#dashboard' , :as => 'authenticated_root'
# Rails 4 users must specify the 'as' option to give it a unique name
# root :to =&
可以在没有用户干预的情况下从ADB启动蓝牙吗?我试过了:
am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
但这需要用户按ok。和:
service call bluetooth 3
什么也做不了。在init.rc中启用蓝牙服务也不起作用。
service bluetoothd /system/bin/bluetoothd -n
class main
socket bluetooth stream 660 bluetooth bluetooth
socket dbus_bluetooth stream