• 半年经验新手也想贡献点,有什么可以效劳的吗

  • carrierwave 怎么批量上传 at 2012年11月23日

    #1 楼 @huobazi 有简单点的例子吗?我是那个数据库我不会用

  • #1 楼 @sapronlee 非常感谢//

  • 无法删帖 at 2012年11月13日

    i++

  • #19 楼 @woaigithub sql 理好了 SELECT * FROM users INNER JOIN(select user_id from topics group by user_id order by count(user_id) desc) g on g.user_id = id。find_by_sql 可以实现,那转换乘 rails 还是不会,用 joins 一直没成功过

  • #16 楼 @woaigithub 全对,

  • #14 楼 @woaigithub 奥,我说得不清楚,我意思是根据@sort 来得到对应 user_id 的返回记录,

  • #12 楼 @woaigithub 那如果我要根据这个 user_id 去找到所有 users 集合,该怎么写呢

  • #10 楼 @woaigithub 嗯 可以实现, @sort=Topic.group('user_id').select('user_id').order('count(user_id) desc') 如何让@sort做为变量放进另一个查询中去,如:@users = User.find(@t) 这样写出错,提示:Cannot visit Topic

  • Heroku 部署,报错. at 2012年10月23日

    #6 楼 @hlcfan 可以手把手教我次不,

  • #10 楼 @robin 你给的教程我试了下,在执行 heroku run rake db:migrate 的时候,出现: G:\rubyandrailsproject\onkerokutest>heroku run rake db:migrate ! Heroku client internal error. ! Search for help at: https://help.heroku.com ! Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed becau se connected host has failed to respond. - connect(2) (Errno::ETIMEDOUT) Backtrace: G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/client/rendezvous.rb:36:in initialize' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/client/rendezvous.rb:36:inopen' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/client/rendezvous.rb:36:in block in start' G:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:68:inti meout' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/client/rendezvous.rb:30:in start' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/command/run.rb:125:inrendezvous_session' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/command/run.rb:112:in run_attached' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/command/run.rb:21:inindex' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/command.rb:206:in run' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/lib/heroku/cli.rb:28:instart' G:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3 1.4/bin/heroku:16:in <top (required)>' G:/RailsInstaller/Ruby1.9.3/bin/heroku:19:inload' G:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `'

    Command: heroku run rake db:migrate Version: heroku-toolbelt/2.31.4 (i386-mingw32) ruby/1.9.3

    然后页面上只显示:We're sorry, but something went wrong...求解答

  • 关于 mailer at 2012年10月13日

    #1 楼 @ganweiliang domain 应该写?

  • 用 QQ 修改密码的时候出错,跳转的页面提示:

     ArgumentError in Users#forget_password_create
    
    Showing /home/user/railsprocess/coolxueyuan3/app/views/usermail/forget_password.html.erb where line #6 raised:
    
    Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
    
    Extracted source (around line #6):
    
    3: <span style="margin-top: 15px;margin-bottom: 15px;">
    4: <%= users_forget_password_change_url(:user_name => @user_name,
    5:                                      :user_qq => @user_qq,
    6                            :user_hash => @user_hash) %>
    7: </span><br />
    
  • o 同意 3 楼的观点,

  • heroku 数据库配置 at 2012年09月28日

    额。还有这样的情况啊? 我做了静态页面放上去可以显示啊,http://damp-temple-1262.herokuapp.com/