- 博客(12)
- 收藏
- 关注
转载 yesod / yesod-core / widget-benchmark
main = defaultMain[ bench "bigTable html" $ nf bigTableHtml bigTableData, bench "bigTable hamlet" $ nf bigTableHamlet bigTableData, bench "bigTable widget" $ nf bigTableWidget...
2012-03-19 11:41:00 95
转载 yesod / yesod-auth / Yesod / Auth
getAuth :: a -> AuthgetAuth = const Auth-- | User credentialsdata Creds m = Creds{ credsPlugin :: Text -- ^ How the user was authenticated, credsIdent ::...
2012-03-19 11:38:00 229
转载 yesod / yesod-auth / auth2
mkPersist [$persist|Emailemail String Eqstatus Bool updateverkey String null updatepassword String null updateUniqueEmail email|]data A2 = A2 { connPool :: ...
2012-03-19 11:36:00 196
转载 yesod / yesod-auth / browserid
getRootR :: Handler ()getRootR = redirect RedirectTemporary $ AuthR LoginRgetAfterLoginR :: Handler RepHtmlgetAfterLoginR = domauth <- maybeAuthIddefaultLayout $ addHaml...
2012-03-19 11:33:00 95
转载 yesod / yesod-auth / openid
getRootR :: Handler RepHtmlgetRootR = getAfterLoginRgetAfterLoginR :: Handler RepHtmlgetAfterLoginR = domauth <- maybeAuthIddefaultLayout $ addHamlet [hamlet|<p>...
2012-03-19 11:32:00 109
转载 yesod / yesod-auth-oauth
oauthUrl :: Text -> AuthRouteoauthUrl name = PluginR name ["forward"]authOAuth :: YesodAuth m=> OAuth -- ^ 'OAuth' data-type for signing....
2012-03-19 11:29:00 93
转载 InheritedResources 简介 2
对于下面的这几行,比较难理解,有空再说吧。Our first attempt to do this would be:class ProjectsController < InheritedResources::Base def update update! do |format| unless @project.errors.empty? #...
2012-02-24 19:13:00 74
转载 inherited_resources 简介 1
对下面两个插件有依赖,分别为 HasScope 和 Responders 他们三者安装都很简单,直接 gem install 或者 bundle 就行。对于 controller 中,常见的 flash 提示如 flash[:success] , flash[:failure] 我们可以用 Responders 聪明的我们减少重复造轮子Using responders wil...
2012-02-24 18:51:00 74
转载 教你安装RVM,ruby,rails(非windows)...
对于新手来说,安装rails有时确实是一件痛苦的事。这也不懂,那也不懂。尽管网上这教程一搜一大把,但如何‘选择’又是另一个大问题了。网上教你如何安装rails的教程可以说数不胜数,这也只是其中这一,作者希望能够对你有帮助~~~首先说明,这教程不适用于windows,作者本人也只是在ubuntu上安装成功,其它的类linux应该‘大同小异’吧。第一步,打开终端Ctrl+T。然后升级一下源,...
2011-10-24 20:56:00 188
转载 教你安装Rails(windows用户)...
废话不多说,点击下面的链接,下载安装。安装过程中的会让你选择一些选项,你可以认真看一下或者直接打勾!http://rubyforge.org/frs/download.php/74977/railsinstaller-2.0.0.exe恭喜你!安装好rails了。在‘开始’-‘所有程序’-‘RailsInstaller’里打开那像cmd的东西。分别输入:ruby -vgem -vrail...
2011-10-24 20:51:00 93
转载 安装RVM,Ruby,Rails;布暑 passenger + nginx
本文仅为作者本人经验之谈,可供参考。安装过程中,有问题可以加qq1403126229,我尽量回答(有空,并且我懂的话) 本文可能不断更新,转载请注明出处www.cnblogs.com/kelby。谢谢。================================================================================...
2011-10-24 20:48:00 103
转载 Ubuntu, Ruby, RVM, Rails, and You-(Ubuntu安装Rails)
本文将教您如何在 Ubuntu 10.10上安装 Ruby 1.9.2,RVM 和 Rails 3.0.7,在其他操作系统上可能也可以工作,包括旧版本的Ubuntu和Debian。如果您想安装在生产服务器上(译注:本机开发也可以),我建议使用 the railsready script ,它会帮您安装Ruby 1.9.2p136,以及该版本所有必需的包,Bundler 和 ...
2011-10-12 12:49:00 98
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人