English 中文(简体)
铁路设计会议主计长
原标题:Rails devise Sessions Controller

在设计过程中,教授如何完成某些事情的许多网页需要编辑一名会议控制员。 https://github.com 它没有接过会议控制员。 我怎么做。 (如果它真的容易一毫 s,只给我几个简单的步骤)

最佳回答

Create your Sessions Controller with rails g controller MySessions. Then inside of your controller change it from inheriting from ApplicationController to the Devise Controller like so:

class MySessionsController < Devise::SessionsController

#your session logic here

end

各位想要推翻你的控制者的任何逻辑都可能压倒一切,要求采用这种方法并插入自己的逻辑。 关于该控制人员名单,您可在Github网页上查阅该守则。 如果你不想凌驾于他们的方法之上,那么你要么离开,要么只是说 super。

def new
  super
end
问题回答

暂无回答




相关问题
why the session in iis automatically log out?

I used iis6, and when i called a function Directory.delete(), the all the session relate this website will be logged out. and i debugged the website, i found no exception. any one have ideas on this ? ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Can I get the size of a Session object in bytes in c#?

Is it possible to get the size(in bytes) of a Session object after storing something such as a datatable inside it? I want to get the size of a particular Session object, such as Session["table1"], ...

提供严格分类的出席会议物体

提供严格分类的与会机会的最佳方式是什么? 我正计划转而选择矩阵,这正在促使汇编者抱怨我的幻觉方案拟订方法......

PHP Session is not destroying after user logout

I m trying to create an authentication mechanism for my PHP Application and I m having difficulty destroying the session. I ve tried unsetting the authentication token which was previously set within ...

热门标签