#8 楼 @hhuai #11 楼 @apprentice 七牛?是七牛云存储吗?还没用过,不过和我公司在一个楼层的。。
#1 楼 @gaicitadie 好贵的,,,,
为什么程序员都要求英语好!!!
我也遇到这样的情况,,,v2 的 mysql 服务没有使用到,v1 版本的 mysql 自动配置好的,新版本的不会用啊
额。。。。公司和我同一层。。。为什么叫七牛呢?
#13 楼 @tyaccp_guojian 651019063
#11 楼 @tyaccp_guojian 感觉你和我的学习路途一样、、、、
#3 楼 @wppurking 本地能够跑得起来,我换 mysql 了
#1 楼 @Rei http://ruby-china.org/topics/6489 上说是写上 == stylesheet_link_tag "style.css" 就应该能行,但是我这里提示:stylesheet_link_tag 没有这个方法。引入不进来
:sun:
在上海找 ruby 工作也难啊。
半年经验新手也想贡献点,有什么可以效劳的吗
#1 楼 @sapronlee 非常感谢//
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 楼 @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:in
open'
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:in
ti
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:in
rendezvous_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:in
index'
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:in
start'
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:in
load'
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...求解答
#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 楼的观点,