2014-05-22 19:58:13 +08:00
patch:
<EFBFBD> û<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IJ<EFBFBD> <EFBFBD> ֣<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> issues#655<35> <35>
Ϊ<EFBFBD> <EFBFBD> <EFBFBD> ķ<EFBFBD> <EFBFBD> <EFBFBD>
alias<EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ֮ǰ<D6AE> <C7B0> ʾ <20> <> <EFBFBD> <EFBFBD> ֮<EFBFBD> <D6AE>
name firstname+lastname login
nickname xxx login
realname xxx firstname+lastname
2014-06-03 16:41:12 +08:00
User model<65> <6C> <EFBFBD> <EFBFBD> <EFBFBD> ģ<DEB8> <C4A3> Ѿ<EFBFBD> <D1BE> <EFBFBD> ȫ<EFBFBD> <C8AB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> user_extensions<6E> Ĺ<EFBFBD> <C4B9> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
user.gender=1
user.save
user_extensions<EFBFBD> ֶλ<EFBFBD> <EFBFBD> Զ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ҫÿ<EFBFBD> <EFBFBD> user.user_extensions.xxx<78> Լ<EFBFBD> <D4BC> ж<EFBFBD> <D0B6> Ƿ<EFBFBD> Ϊ<EFBFBD> <CEAA>
2014-05-22 19:58:13 +08:00
================================================================================
2014-04-10 08:52:59 +08:00
app/models/setting.rb :165
2014-04-01 20:05:14 +08:00
# 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
<20> <> <EFBFBD> <EFBFBD> <F2B2BFB7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ƶ<EFBFBD> <C6B6> <EFBFBD> subdomain<69> <6E> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʹ <EFBFBD> <CAB9> <EFBFBD> <EFBFBD> <EFBFBD> ڶ<EFBFBD> <DAB6> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ת<EFBFBD> <D7AA>
Ϊ<> ˿<EFBFBD> <CBBF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 㣬ʹ ֮<CAB9> <D6AE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> developmentģʽ <C4A3> <CABD> ʧЧ<CAA7> <D0A7>
# => nyan
================================================================================
2014-04-10 08:52:59 +08:00
app/controller/projects_controller.rb ===> projects#fake
fake filter: <20> <EFBFBD> <DEB8> ˴ <EFBFBD> <CBB4> <EFBFBD> ҳ<EFBFBD> <D2B3> <EFBFBD> е <EFBFBD> Count<6E> <74> <EFBFBD> <D7BA> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<20> <> Ϊ<EFBFBD> <CEAA> ȷ<EFBFBD> <C8B7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɾ<EFBFBD> <C9BE> fake<6B> <65> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
================================================================================
2014-04-04 15:24:42 +08:00
#<23> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ƥ<EFBFBD> <C6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʾ <EFBFBD> ı <CDB8>
app\helper\application_helper.rb
# rewrite navigation
app\views\layouts\_base_header.html.erb
# reset navigation by domain name and url through regular match
================================================================================
#<23> <> ҳ<EFBFBD> <D2B3> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ƥ<EFBFBD> <C6A5> <EFBFBD> <EFBFBD> <EFBFBD> 벻ͬ<EBB2BB> <CDAC> ҳ<EFBFBD> <D2B3>
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
================================================================================