楼主肯定没有用过类似的: https://shrinkray.io
不存在覆盖的问题,就是两个不同的 Controller
检查你 views/admin/posts/edit.html.erb
注意 Namespaces
<%= form_for [:admin, @post] do |f| %>
......
<%= f.submit "Submit", :disable_with => 'Submiting...' %>
#1 楼 @yuhaidonghd 好吧 我太 low 了 :
20 块钱也来骗!!!
自己也能抢吗
@el09xc 好了 一下给我发了 6 条
@el09xc 注册 UCloud 收不到手机验证码
Nice job.
[email protected] 正准备用七牛
class User < ActiveRecord::Base def email_required? false end end
class Membership < ActiveRecord::Base belongs_to :member belongs_to :group end
class Member < ActiveRecord::Base has_many :memberships end
class Group < ActiveRecord::Base has_many :memberships has_many :female_members, through: :memberships, source: : member, conditions: "memberships.gender = 'female'" has_many :male_members, through: :memberships, source: : member, conditions: "memberships.gender = 'male'" end
huang900107#163.com
#8 楼 @jimrokliu 能贴一个简单的 thread 例子吗 不太明白它是来干嘛的
#10 楼 @fresh_fish 非常感谢
#12 楼 @woaigithub MessageRecipient 模型就是 receiver
直接写个 html 放 public 文件夹下就好了
学习了:thumbsup:
换一种思路:Program.where(name: '0').order('created_at DESC').limit(1)
补充一个:http://vimcasts.org/