码迷,mamicode.com
首页 >  
搜索关键字:rails ruby ror    ( 11879个结果
如何快速正确的安装 Ruby, Rails 运行环境
https://ruby-china.org/wiki/install_ruby_guide如何快速正确的安装 Ruby, Rails 运行环境对于新入门的开发者,如何安装 Ruby, Ruby Gems 和 Rails 的运行环境可能会是个问题,本页主要介绍如何用一条靠谱的路子快速安装 Ruby ...
分类:其他好文   时间:2014-07-10 11:31:32    阅读次数:226
rails 中model之间的 association (:inverse_of)
class Customer < ActiveRecord::Base has_many :ordersendclass Order < ActiveRecord::Base belongs_to :customerend如上代码两个model在做如下查询的时候:c = Customer.fir.....
分类:其他好文   时间:2014-07-10 10:03:57    阅读次数:293
[Go语言]一、入门Hello,World
Go简介 为什么有了系统编程级别的C/C++以及后来的Java,也有脚本级别的Ruby/Perl/Python语言可用,Google为什么还要发布Go语言? “我们开发Go,是因为近10年左右开发程序之难让我们有点沮丧” --首席软件工程师Rob PikeGo完全支持coroutine,即协程,也称...
分类:其他好文   时间:2014-07-07 22:43:39    阅读次数:313
rails routes配置
Rails.application.routes.draw do match 'projects/:id/:controller(/:action(/:id))(.:format)'end
分类:其他好文   时间:2014-07-07 18:35:00    阅读次数:187
rails [error_messages_for]
class Foo 255end def create @foo =Foo.new(params[:foo]) @foo.project_id =@project.id if @foo.save flash[:notice] = l(:notice_successfu...
分类:其他好文   时间:2014-07-07 18:21:22    阅读次数:240
Rails 【labelled_form_for 和 form_for 和 form_tag 的区别】
{:action=>'create'} do |f| %> 'foos/form',:locals=>{:form=>f} %> 'continue' %>labelled_form_for 和 form_for都是和Model层绑定使用的区别是labelled_form_fo...
分类:其他好文   时间:2014-07-07 18:08:26    阅读次数:347
Rails 添加css javascript 结合easyui
'redmine_standard' %> 'redmine_standard' %> 'jquery-easyui-1.3.6/themes/default' %> 'jquery-easyui-1.3.6/themes' %> 'jquery-easyui-1.3.6' %> 'jquery-....
分类:编程语言   时间:2014-07-07 17:38:39    阅读次数:394
Rails + rabl
当我们使用rails generate scaffold的方式生成MVC的时候,rails会自动给我们生成一系列的文件,包括了如何用json显示model的view。这样其实默认了你的系统是一个CRUD的系统,但是我们知道RESTful不是CRUD。把model直接暴露出去不是一个很好的选择。 rabl是一个DSL可以方便定制生成对象的显示信息的gem:https://github.co...
分类:其他好文   时间:2014-06-28 08:06:56    阅读次数:248
error
Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./home/chenwei/.rvm/rubies/ruby-1.9.3-p547/bin/rubyextconf.rbcheckingforruby/thread.h...nocheckingforrb_thread_blocking_region()...yescheckingforrb_wait_for_single_fd()...yescheckingforrb_hash_dup()...
分类:其他好文   时间:2014-06-28 00:32:22    阅读次数:296
gem 命令
ruby -v #查看ruby 版本ruby -e ''require"watir"; puts Watir::IE::VERSION'' #查看watir版本rvm list known #列出已知的ruby版本rvm install 1.9.3rvm use 1.9.3 | rvm use sy...
分类:其他好文   时间:2014-06-27 22:29:45    阅读次数:285
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!