`
文章列表
环境变量: config.active_record.mass_assignment_sanitizer = :logger # :restrict in application.rb: config.active_record.whitelist_attributes = false 参考网址:   http://hobocentral.net/tutorials/64-single-table-inheritance-with-children 子类代码: class Agent < Profile has_many :phone_numbers ...
http://hobo.tylerlesmann.com/entries/4-make-a-blog-with-hobo-tagging In this episode, we’ll add tagging support to our blog. Features of this lesson will be applicable to any many-to-many relationship in Hobo. Before I go any further, at the time of this writing, Hobo does not support has_and_belong ...
https://github.com/FooBarWidget/passenger/pull/71/files http://ruby-china.org/wiki/mac-nginx-passenger-rails bug 修复 rake assets:precompile config.serve_static_assets = false  ??
http://hi.baidu.com/whhzthfnayhntwe/item/a4f9ae056f08b012cc34eadc Ruby Web Spidering and Data extraction Anemone: http://anemone.rubyforge.org Example: Anemone.crawl("http://www.example.com/") do |anemone|          anemone.on_every_page do |page|            puts page.url        ...
先在windows 里建 一个共享目录 app ubuntu里也要建一个目录 happ sudo mount //192.168.1.102/app /home/fuyi//happ -o username=fuyi,password=a2241114,dmask=777,fmask=777 注册windows 的权限设置 参考: http://www.cnblogs.com/liu_xf/archive/2011/02/18/1957579.html
http://hi.baidu.com/yishenyi/item/89db9fc52c4d2d47a9ba94c0 使用 ActiveScaffold 增强 Ruby on Rails 的功能     节省点时间,少一些头痛,使用 Ruby on Rails ActiveScaffold 插件可以创建更容易维护的页面。ActiveScaffold 可以处理用户接口所需的所有 CRUD(创建、读取、更新和删除)操作,这样可以为您节省更多时间来重点关注更有挑战(也更有趣的)问题。 为复杂应用程序编写基于 Web 的数据输入 UI 永远都不是件快乐的事,通常都是非常单调乏味的。良好用户界面的一 ...
RubyMine 注册 序列号 现在最新版本是4.0.2, 使用这个key仍然有效, 对于这个没什么好说的, 如有必要,请支持购买正版。 No.1: name: rubymine License Key: 70414-12042010 00002VG0BeoZbwmNAMNCx5E882rBEM Ysn1P!e"s830EDlHcWg8gmqYVkvZMo Injf4yqlO1yy"82NiwNzyYInoT7AiX No.2: username:EMBRACE license key: 89330-12042010 00001p4HOxG8it!A4uOcpk1E& ...
红色字体为备注字体,是可能碰到的情况! 第一步:下载jdk-7u3-linux-i586.tar.gz 先面链接下载jdk-7u3-linux-i586.tar.gz http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html (注:如果下载不下来,建议使用迅雷下载,然后拷贝到Linux系统上。) 第二步:解压安装 执行代码:     sudo tar zxvf ./jdk-7u3-linux-i586.tar.gz  -C /usr/lib/jvm      cd / ...
sublime text 2 使用与配置 与rails配合 http://www.iplaysoft.com/sublimetext.html http://yggg.me/post/25340154228/sublime-text-2-rails http://www.cnblogs.com/angestudy/archive/2012/11/03/2752064.html http://wbond.net/sublime_packages/community#sort-installs http://www.qianduan.net/essential-to-sublime-the-tex ...
Ubuntu的软件源地址 http://blog.chinaunix.net/uid-26404477-id-3382633.html http://luveelin.blog.163.com/blog/static/119492341201251931614753/ 其中 骨头源 速度最快 参见: unbunt Server 服务器远程 图形界面设置 http://gm100861.blog.51cto.com/1930562/917316 在putty等远程命令行终端执行带有GUI图形界面的程序找不到$DISPLAY错误的解决办法,xserver相关 http://www.cnblogs ...
Ubuntu的软件源地址 http://blog.chinaunix.net/uid-26404477-id-3382633.html http://luveelin.blog.163.com/blog/static/119492341201251931614753/ 其中 骨头源 速度最快 安装 桌面环境,只要先换源,然后 apt-get install gdm gnome 就行 Ubuntu 12.04 改造指南 http://www.lupaworld.com/article-217719-1.html 词典软件 sudo apt-get install stardict ...
下载 解压 到bin目录 运行  ./rubymine.sh 即可 RubyMine 注册 序列号 No.1: name: rubymine License Key: 70414-12042010 00002VG0BeoZbwmNAMNCx5E882rBEM Ysn1P!e"s830EDlHcWg8gmqYVkvZMo Injf4yqlO1yy"82NiwNzyYInoT7AiX No.2: username:EMBRACE license key: 89330-12042010 00001p4HOxG8it!A4uOcpk1E"boEjk v!tn2J ...
1、安装RVM 安装curl   sudo apt-get install curl 安装 GCC G++ 等   sudo apt-get  install  build-essential 安装RVM    curl -L get.rvm.io | bash -s stable 安装RVM PKG rvm pkg install openssl && rvm pkg install zlib && rvm pkg install libyaml && rvm pkg install iconv rvm install 1.9.3-p0 --w ...
hobo 中的对记录编辑后,默认是跳转到 show页面 以下可改变默认跳转到 index class ContactsController < ApplicationController hobo_model_controller auto_actions :all def update hobo_update do redirect_to "/contacts" if valid? end end end 最好是能把这个def update 定义转到application.rb中去, ...
hobo能够自动处理继承 例:从user继承employee 先建立资源 hobo g model employee birthday:date 直接更改:employee.rb class Employee < ActiveRecord::Base   hobo_model # Don't put anything above this   fields do     timestamps   end end 为: class Employee < User    fields do     birthdayate   end end 然后:生成数据库 hobo g m ...
Global site tag (gtag.js) - Google Analytics