Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
12 years ago | |
|---|---|---|
| .metadata | 12 years ago | |
| app | 12 years ago | |
| config | 12 years ago | |
| db | 12 years ago | |
| doc | 13 years ago | |
| extra | 13 years ago | |
| files | 13 years ago | |
| lib | 12 years ago | |
| public | 12 years ago | |
| script | 13 years ago | |
| test | 12 years ago | |
| tmp/plugins | 13 years ago | |
| .gitignore | 12 years ago | |
| Client.html | 12 years ago | |
| Gemfile | 12 years ago | |
| Gemfile.lock | 12 years ago | |
| README.rdoc | 13 years ago | |
| Rakefile | 13 years ago | |
| ReadMe.txt | 12 years ago | |
| config.ru | 13 years ago | |
patch:
用户姓名的部分,根据issues#655。
为了修改方便
alias:
方法 之前显示 调整之后
name firstname+lastname login
nickname xxx login
realname xxx firstname+lastname
User model经过修改,已经完全集成了user_extensions的功能
例如
user.gender=1
user.save
user_extensions字段会自动保存
不必要每次user.user_extensions.xxx以及判断是否为空
================================================================================
app/models/setting.rb :165
# fixed domain url in development. tantantan's bug
if Rails.env.development?
methods.map do |m|
define_singleton_method m do; nil; end if m.to_s =~ /([a-zA-Z]+_domain)$/
end
end
程序部分链接中制定了subdomain参数,使链接在二级域名中来回跳转。
为了开发方便,使之功能在development模式下失效。
# => nyan
================================================================================
app/controller/projects_controller.rb ===> projects#fake
fake filter: 修改了传到页面中的Count后缀的数量
改为正确的数量,删掉fake过滤器即可
================================================================================
#导航栏匹配域名显示和改变
app\helper\application_helper.rb
# rewrite navigation
app\views\layouts\_base_header.html.erb
# reset navigation by domain name and url through regular match
================================================================================
#首页根据域名匹配进入不同的页面
app\controller\welcome_controller.rb
def entry_select_user
if request.original_url.match(/user\.trustie\.net/)
redirect_to(:controller => "users", :action => "index")
return 0
end
end
================================================================================
================================================================================
0606:新坑
user_scores表结构有问题,需要运行
bundle exec rake db:migrate:down VERSION=20140410021724
bundle exec rake db:migrate:up VERSION=20140410021724
软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...
JavaScript Ruby HTML+ERB CSS SVG other