01 2016 档案

rails使用bootstrap
摘要:在Gemfile文件中添加'bootstrap-sass',再运行bundle install gem 'bootstrap-sass' 在config/application.rb添加一行代码,让bootstrap-sass和asset pipeline兼容 class Application < 阅读全文

posted @ 2016-01-31 19:51 jec 阅读(480) 评论(0) 推荐(0) 编辑

rspec测试(使用guard自动测试和spork加速测试)配置
摘要:Gemfile文件添加rspec、guard和spork,之后执行bundle install命令 gem 'rb-readline' group :development, :test do # Call 'byebug' anywhere in the code to stop executio 阅读全文

posted @ 2016-01-31 19:27 jec 阅读(583) 评论(0) 推荐(0) 编辑

ruby on rails全局布局,局部视图,局部布局
摘要:参考链接:http://guides.ruby-china.org/layouts_and_rendering.html#%E9%9D%99%E6%80%81%E8%B5%84%E6%BA%90%E6%A0%87%E7%AD%BE%E5%B8%AE%E5%8A%A9%E6%96%B9%E6%B3%9... 阅读全文

posted @ 2016-01-23 10:50 jec 阅读(1045) 评论(0) 推荐(0) 编辑

ruby on rails使用gmail的smtp发送邮件
摘要:参考至http://guides.rubyonrails.org/action_mailer_basics.html在gmail账户的安全里先开启两步验证(链接:https://myaccount.google.com/security),在生成一个应用专用密码,再后面需要使用。在控制台下进入到ra... 阅读全文

posted @ 2016-01-23 10:12 jec 阅读(1078) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示