Rails框架搭建

RevelGo搭建教程:类Rails开发体验的Go Web框架 RevelGo是一款基于 Go 语言的全栈 Web 开发框架,集成了 Web 应用开发所需的多种核心功能。快速开发完整框架支持高性能运行适合用于构建中大型 Web 应用系统。RevelGo 作为一款全栈 Go 框架,通过集成多种核心功能与类 Rails 开发体验,为开发者提供了高效的开发方式。快速构建 Web 应用高性能后端支持完整框架能力那么 RevelGo 是一个值得尝试的选择。结合云服务器部署,可以打造稳定、高效的 Web 应用系统。 阅读详情

一年前初学ROR时写的老文章了,发上来共享一下。转载请注明出处。

一、安装railsinstaller(不要有中文路径)
            环境变量配置(Path中应该有前两条,添加第三条):
            D:\RailsInstaller\Git\cmd;
            D:\RailsInstaller\Ruby2.0.0\bin;
            D:\RailsInstaller\DevKit\bin;

二、rubymine创建工程:
            一开始遇到连接不到rubygems.org

            外网不可靠,于是我们的万能淘宝出现了。。
            打开cmd  ,ctrl + c ,ctrl + v下面三条命令
            (重要!!!注意,rubyinstaller 绝对不能安装在中文路径下,不然你就等着字符出现编码错误重装吧。)

	gem sources --remove https://rubygems.org/
	gem sources -a https://ruby.taobao.org/
	gem sources -l
	出现下面的内容:
	*** CURRENT SOURCES ***
       	https://ruby.taobao.org# 请确保只有 ruby.taobao.org

然后:
		gem install rails
		(时间很长很长,请耐心等待)

三、装完,去项目,一切好像很正常,不,这才刚开始:
	1、打开项目,创建ruby appliction:
	
	
		2、打开项目,bundle install 
	
		3、直接insatall,不管其他的
	
		好了,报错了:
	
		4、gemfile文件有错误,改成这样的(在最下面)




5、报错继续(原因是win8下gem插件在),cmd 安装therubyracer
gem install therubyracer

报错:


6、下载node.js
下载完之后,环境变量配置(path中)
D:\Program Files\nodejs



最后,问题完美解决~~~
在WinXP上使用RadRails搭建Ruby on Rails开发环境指南 本文还有配套的精品资源,点击获取 简介:本教程将指导您如何在Windows XP系统上搭建Ruby on Rails开发环境,重点是使用RadRails作为集成开发环境。Ruby on Rails是一个为Web开发提供的高效、简洁的Ruby语言框架。通过本教程,您将学习安装Ruby语言、使用Gem包管理器来管理Ruby库和依赖、安装Rails框架、配置数据库驱动,并设置Ra... 阅读详情

相关推荐

RailsInstaller 2.2.1

windows下的rails一键安装包,包含devkit和git

推荐使用:RailsInstaller - Windows上的Rails开发环境搭建利器

推荐使用:RailsInstaller - Windows上的Rails开发环境搭建利器 项目简介 RailsInstaller 是一个专为Windows用户设计的Rails开发环境一站式安装工具。尽管当前处于4.0.0-alpha预发布状态,但这个项目致力于简化在Windows系统上安装和配置Ruby on Rails开发环境的过程。 技术剖析 RailsInstaller 包括以下核心组件: ...

gitblog_00009的博客 631

railsinstaller-3.2.1.rar

railsinstaller-3.2.1,安装 redmine 所需ROR组件库,包括 ruby、rails、git 等。

RailsInstaller简化了Rails在Windows上的安装过程

RailsInstaller向Windows开发者提供了一种便捷的方式以轻松、快速创建Ruby on Rails 3应用。到目前为止,Windows开发者需要自己搭建好Ruby、RubyGems、Rails以及SQLite才能开始创建Rails应用。多亏了来自Engine Yard的Nic Williams博士及其团队,现在一切都变得简单异常。\目前的RailsInstaller提供了如下功能:\...

cpongo5 264

railsinstaller-3.0.0.exe

railsinstaller-3.0.0.exe 目前的最新版本,railsinstall(其中集成gem、rails(4.0)、ruby(2.0)和数据库(sqlit3)

railsinstaller-2.1.0完整版

railsinstaller-2.1.0完整版

Redmine的安装、总结和心得

Redmine的安装、总结和心得         本人现在也只是一个刚刚通过专升本考上本科的大学生,在今年的5月份专科毕业,抱着正式工作的想法有幸在上海的一家医疗信息公司实习,只主要做测试,因为工作需要在网上找一种基于web的BUG管理软件,经过多方面的试用、比较、适合公司,等方方面面的选择后,我选择了redmine,请不要试图问我什么是redmine,不懂去百度。再后来公司就直接告诉我:小吴呐

Chriswu9010的专栏 3454

railsinstaller-2.2.5.zip

railsinstaller-2.2.5.exe 官网有,但是总是被墙,方便大家下载。

Redmine项目管理系统安装部署

railsinstaller,redmine,mysql工具安装教程 下载安装railsinstaller-3.4.0.exe 官网下载地址http://railsinstaller.org/en,上面有WINDOWS RUBY 2.2和WINDOWS RUBY 2.3,选择最新的WINDOWS RUBY 2.3后 ,会下载文件railsinstaller-3.4.0.exe。   点击exe按默认选项安装,完成后在C盘生成RailsInstaller、Sites两个目录。 2、下载安装redmine-3.

weixin_45067120的博客 2234

基于Python+OpenCV中文及符号检测

一、项目背景与意义在图像处理、文档识别、自动翻译等场景中,中文及符号的准确检测是一个重要且复杂的任务。传统的字符检测方法往往对英文等拉丁字母系的识别效果较好,但对中文及特殊符号的识别准确率较低。本项目旨在利用Python编程语言结合OpenCV库,开发一个能够高效、准确地检测图像中中文及符号的系统,为相关领域的研究和应用提供技术支撑。二、技术实现图像预处理:利用OpenCV的图像处理功能,对输入的图像进行灰度化、二值化、滤波去噪等预处理操作,以提高中文及符号检测的准确性[1]。

2301_79809972的博客 1125

【C++】小猫钓鱼纸牌游戏--C++实现

小猫钓鱼问题: 描述:初始,两个人各有n张牌(牌面0-10),顺序固定,只能按顺序出牌。然后,两个人轮流在桌面上以接龙的方式出牌,当某个人放置的牌在桌面上已经出现时,他收起相同牌面及其中间的牌作为自己的筹码,同时需要再放一张牌到桌面。某人手上的牌出完后,另一个人继续出,直到两人手上都没牌为止,输出结束时两个人手上的筹码数。 #include<iostream> using namespace std; struct queue { int head; //队列首 int tail; //

qq_41344430的博客 3203

【Ruby基础01】windows和termux中搭建Ruby开发环境

windows。

monsterskiller的博客 1356

京瓷扫描驱动安装_京瓷喷头拆解和供墨原理剖析

在工业喷头打印领域,京瓷喷头作为主流喷头广泛应用于喷墨行业,目前京瓷喷头市面上销售主要有两个系列:KJ4A和KJ4B。其中KJ4A系列设计是用于油性墨水,例如UV墨水,主要用在广告领域;而KJ4B设计用于水性墨水,例如活性、分散墨水等,主要用在数码印花领域。最近我们团队对京瓷喷头进行了拆解分析,本期和大家分享一下我们对京瓷喷头拆解和喷头供墨原理的研究。京瓷喷头介绍1. KJ4A系列(油性)如下图所...

weixin_39883906的博客 1684

Ruby与Ruby on Rails框架环境搭建的简明教程例子解析

希望这些步骤能帮助您成功搭建Ruby on Rails开发环境。如果您有任何问题或需要进一步的帮助,请随时联系。

IT老农民的博客 971

PSOC Creator 入门教程超详细

最近工作原因需要使用到赛普拉斯的一款芯片,奈何以前没有用过,所以趁这次也学习了一些简单的用法,总结一下,希望能帮到有需要朋友,因为网上关于这方面的文章少的可怜,详细点的更是少之又少!废话少说,正文开始.

qm_mq的博客 5762

315、弱电基础知识介绍

常见的弱电系统包括:闭路电视监控系统、防盗报警系统、门禁系统、电子巡更系统、停车场管理系统、可视对讲系统、家庭智能化系统及安防系统、背景音乐系 统、LED显示系统、等离子拼接屏系统、DLP大屏系统、三表抄送系统、楼宇自控系统、防雷与接地系统、寻呼对讲及专业对讲系统、弱电管道系统、UPS不 间断电源系统、机房系统、综合布线系统、计算机局域网系统、物业管理系统、多功能会议室系统、有线电视系统、卫星电视系统、卫星通讯系统、消防系统、电话 通讯系统、酒店管理系统、视频点播系统、人力资源管理系统等等。

qq_43416206的博客 1384

Ruby on rails基本框架搭建

1/新建项目 $rails new depot -d mysql 2/进入文件夹目录 $cd depot 3/x修改项目文件 Gemfile----source 'https://ruby.taobao.org'(国内镜像源)/gem 'mysql2','0.3.11'(指定数据库) config/routes.rb----match ':controller(/:action(/:i

007的专栏 507

【同等学力】2005-数学⭐✨

有r个正方形排成一行,今用红、黄、白、蓝四种颜色给这个r个正方形染色,每个正方形只能染一种颜色,如果要求染红、黄、白色的正方形分别至少出现一个,问有多少种不同的染法?3、(4分)设G是一个有n个结点m条边的连通简单平面图,若n≥3,则m≤3n-6.4、(4分)证明:任何连通简单平面图至少有一个结点的度数不超过5

super_mochi1 315

Ruby on Rails 实战:从搭建基础框架到构建完整电商应用

在 Rails 中,模型负责与数据库进行交互。在app/models目录下定义Product模型:end根据电商应用的业务逻辑,还可以在模型中添加验证、关联等功能。例如,为商品名称添加唯一性验证:end。

数字魔方操控师的博客 1018

YOLOv5改进之---EIoU,SIoU,AlphaIoU,FocalEIoU,Wise-IoU

本文主要针对yolov5的iou损失函数进行改进,主要涵盖EIoU,SIoU,AlphaIoU,FocalEIoU,Wise-IoU这几种损失

qq_41920323的博客 1474

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

rails oracle环境搭建,Ruby与Ruby on Rails框架环境搭建的简明教程

安装Ruby与升级RubyGems提示:在Ubuntu环境下安装过程中,如果提示权限问题,可以使用sudo make和sudo make install。1.Ruby安装wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz \&& tar -xzvf ruby-1.9.3-p125.tar.gz \&am...

weixin_27076351的博客 180

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

基于Docker在Win10平台搭建Ruby on Rails 6.0框架开发环境

由于历史原因,本身就由Ruby撰写的HomeBrew在Mac os系统上大行其道,所以大部分Rails程序员的主力电脑都是Mac book pro,而使用Windows系统的用户就没那么好运了,比如Rails 6.0开始启用Webpacker,这就需要用户安装yarn,由此带来一系列的连锁反应,还有令人绝望的Win10系统下的CoffeeScript问题,这也是Rails包括Jekyll时常令人诟病因素之一:搭个环境都这么费劲,我为啥不用Django、Laravel亦或者是Springboot呢?

刘悦的技术博客 687

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

辛星浅析windows下搭建rails框架的sqlite的一个问题

如果朋友们直接执行"gem  install rails"来安装的话,那么当执行"rails  server"的时候,会有一些启动是失败的,下面就是一个报错方法     Could not find gem 'sqlite3 (>= 0) x86-mingw32' in any of the gem sources listed in your Gemfile or available on t

辛星,前进的路上. 678

[rails] 我的订餐系统 -- 小试ruby on rails

近期在java社区中一种新的脚本语言ruby,及用ruby开发的一个wab框架 rails也热闹了起来.引起了不少的java开发人员的关注.  本人平时还是很少接触脚本语言方面东东,看到相关的评论例如:  "习惯约定优于配置" -- 那样就用象java那样麻烦且繁杂地配置N多XML           "一站式面向用户的简单易用的框架"               "Ruby 语言- 真正的面

前方的路 3621

ruby on rails 建新app

fly_best的专栏 412
上一篇: 堆排序与桶排序
Mon_key_DT
博客等级 码龄12年 5粉丝 18原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值