自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 rails ready great script for auto install rails3.2

Rails ReadyRuby and Rails setup script for Linux and OSXDistros supported: Ubuntu 10.04 LTS, 10.10 and 11.04 CentOS 5 (utilizes the Fedora EPEL repo) OSX (requires XCode to be ins...

2012-04-29 22:09:45 113

原创 new start rails 3 0904

jruby -S rails new vm_mgmt -d mysqljruby -S rails generate scaffold User name:string password:string team:string datastore:string vmhost:string folder:stringdb:create database vm_mgmt_test;...

2011-09-05 00:03:01 134

原创 col rails

如何开发JRuby+MySQL+Rails 3程序?安装JDK 1.6--------------------------下载jdk-6u25-linux-x64.binchmod 700 jdk-6u25-linux-x64.bin./jdk-6u25-linux-x64.bin安装JRuby--------------------------下载jruby-...

2011-08-08 18:03:58 97

原创 use 'capistrano'

Start to use capistrano1 add " gem 'capistrano'" a new line to Gemfile2 run: bundle install3 # apt-get install openssh-server[color=red][/color] ssh yourname@localhostThe authenticity...

2011-05-09 17:48:52 119

原创 rails 3 connect to mysql db

其实很简单,不过自己 没有弄明白罢了首先 jruby -S gem install active_recordjruby -S gem install activerecord-jdbcmysql-adapter一般你装 rails 得时候yong bundle 就会装一坨东西了。 呵呵然后 在你得 Gemfile  ( Rails application in /somewh...

2011-04-27 16:06:05 98

原创 rails 3

Install environment:sudo aptitude install build-essential libopenssl-ruby libfcgi-devsudo aptitude install ruby irb rubygems ruby1.8-devsudo aptitude install sqlite3 libsqlite3-dev Using the...

2011-02-21 14:25:51 109

原创 Screen

Install : sudo apt-get install screen 在终端中输入 screen 就启动 Screen 了。按照提示按空格键或回车键开始我们的 Screen 快乐之旅吧。现在,你可以随便执行某些命令来测试,如:ls -l。接着,我们就用 Screen 来孵化一个新的 Shell,同时按组合键 ctrl-a c,同样的,你能够在这里执行命令,我们假如是 ps aux...

2010-07-26 23:59:43 88

原创 《五》更多模型

[list][stepjruby script/generate model Customerjruby script/generate model Orderjruby script/generate model OrderLinejruby script/generate model User jruby -S rake db:migrate(in /h...

2010-07-17 16:29:11 137

原创 《四》Ajax

先留着等我搞明白了 再写

2010-07-17 15:44:43 66

原创 《三》Couldn't find Product with ID=list

老郁闷了 以前很简单的功能现在不成了[list][Couldn't find Product with ID=listRAILS_ROOT: /home/xia/worktest/shopletApplication Trace | Framework Trace | Full Trace/home/xia/jruby-1.5.0/lib/ruby/gems/1.8/g...

2010-07-17 15:38:22 224

原创 完成链接数据库 list 翻页

1 ActiveRecord-JDBC 已经过时了 删除jruby -S gem remove ActiveRecord-JDBC2 安装新的包jruby -S gem list mysqljruby -S gem install mysql -- --with-mysql-lib=/usr/lib/mysql --with-mysql-include=/usr/share...

2010-07-17 14:40:57 123

原创 《一》初步完成curd

1 准备: Pratical JRuby on Rails Web 2.0 Project 这本书很老了所以跟着作出老多问题 我用了很多时间才把基本功能搞地。先说环境: jruby -S gem list -l*** LOCAL GEMS ***actionmailer (2.3.8)actionpack (2.3.8)activerecord (...

2010-07-17 14:11:47 106

ror 搞定redhat 下 openssl 报错问题

昨天鼓捣了一整天 sqlite 驱动装完了,建我第一个rails的时侯出错了require_frameworks': no such file to load -- openssl (RuntimeError我在网上搜了一下这个错 报的很多但是解决的很少,后来发现很多结局不了的是 redhat 下开发的,后来 看到 通过 rpm -qa|grep 可以查询自己缺失的东西我知道自己没...

2009-01-05 10:50:15 202

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除