![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rails
80pei
这个作者很懒,什么都没留下…
展开
-
named_scope or scope 是什么?lambda 怎么用
rails2.* 里面的写法 named_scope rails3.* 里面 去掉 named_ 就直接 scope 如:rails 2.class Item named_scope :red, :conditions => { :colour => 'red' } named_scope :since, lambda {|time| {:condition...原创 2012-05-21 11:19:51 · 102 阅读 · 0 评论 -
Constraint
get '/mobile' => 'posts#index' , :constraint => { :use_agent => /iPhone/}, :default => { :mobile => true }原创 2012-05-21 17:31:34 · 112 阅读 · 0 评论 -
refinery bread_crumb
I just made a breadcrumb for my site and put it in _content_page.html: true) %> > ...原创 2012-05-23 14:32:35 · 115 阅读 · 0 评论 -
Dragonfly::ImageMagickUtils::ShellCommandFailed in ...
I'm really new to refinery and fairly new to rails overall. I've succesfully installed refinery and it's working great, except when I want to add an image. I get the following error: Dragonfly::...原创 2012-05-23 15:08:07 · 119 阅读 · 0 评论