MACOS自带了Apache和PHP 使用Apache 启动、关闭、重启Apache命令如下:开启: sudo apachectl start停止: sudo apachec...

MACOS自带了Apache和PHP 使用Apache 启动、关闭、重启Apache命令如下:开启: sudo apachectl start停止: sudo apachec...
由于公司网络屏蔽了国外一些网络,导致 rvm一直安装不上去,其实我安装 rvm的目的只是为了 使用rvm管理ruby版本,安装低版本的rubyhomebrew 本来就可以直接...
项目展示(需要梯子):https://tranquil-caverns-12036.herokuapp.com
加入:gem "devise", github: "heartcombo/devise" 指令: bundle install rails generate de...
参考:https://youtu.be/tSu8xF0A2ek 输入指令:bin/importmap pin bootstrap 如果报错, 可改为:./bin/import...
近期对RVM和Ruby进行更新的时候,发现大多数文章都是RVM的安装,并没有涉及到更新,所以特意写了这个文章,记录并分享。http://www.rvm.io/rvm/upgr...
参考:解决mac安装grunt时出现[command not found]的错误 - 简书
添加:skip_before_action :verify_authenticity_token 参考:ruby on rails - Invalid Authenticit...
参考:https://www.runoob.com/ruby/ruby-installation-unix.html
环境:VMware上的Ubuntu系统 不知道是否使用因为VMware的问题,这次安装Ruby和Rails时遇到了非常多问题。在网上查询时,也遇到了很多没有提供解决方法的博主...
session与cookie是借由浏览器储存的一个识别证。 session是服务器与浏览器一次会话的电子凭证。 参考资料:https://blog.csdn.net/thin...
helper里的方法可以在view里使用,但不可以在controller里使用, 在controllers里用helper_method定义属性,既可以在controller...