http://btw.jp/message/view/16312
昨日の11時の情報をテストした時は万事問題ありません。
そして、今朝5時にRSSを読んでみたら
http://btw.jp/message/view/16363
28日(木)の天気は曇のち雨最低気温は19℃でしょう。
なんと最低気温が来たよ!と思ったら、最高気温が19℃で文言の間違いだとわかりました。
明日の気温もやっぱりないし。。。
と、一生懸命ブログに書いて改善を待ちます。
28日(木)の天気は曇のち雨最低気温は19℃でしょう。
class ListLinkRenderer < WillPaginate::LinkRenderer
def to_html
links = @options[:page_links] ? windowed_links : []
# previous/next buttons
links.unshift page_link_or_span(@collection.previous_page, nil, @options[:prev_label]) if current_page != 1
links.push page_link_or_span(@collection.next_page, nil, @options[:next_label]) if current_page != total_pages
html = links.join(@options[:separator])
@options[:container] ? @template.content_tag(:ul, html, html_attributes) : html
end
def page_link_or_span(page, span_class, text = nil)
text ||= page.to_s
li_id_class = @options[:li_id_class] || ["pagesend_top_active", "pagesend_top_link"]
li_id, li_class = li_id_class
li_id ||= ""
li_class ||= ""
if page && page != current_page
"<li class=\"#{li_id}\"><a href=\"" + url_for(page) + "\">#{text}</a></li>"
else
"<li id=\"#{li_class}\" class=\"#{span_class}\">#{text}</li>"
end
end
end
<ul>
<% if @requests.total_entries > 0 -%>
<li id="pagesend_top_txt">
<%= @requests.total_entries %>件中
<%= @requests.offset+1 %>
-
<%= @requests.next_page ? @requests.per_page*(@requests.next_page-1) : @requests.total_entries %>
件を表示</p>
<% end -%>
<%= will_paginate(@requests,
{:renderer=>"ListLinkRenderer",
:prev_label=>"<前へ",
:next_label=>"次へ>",
:li_id_class=>["pagesend_top_link", "pagesend_top_active"],
:inner_window=>3,
:container=>nil,
:params=>params}) %>
</ul>
require 'renderer/list_link_renderer'
二つ分テーブルを作り、INDEXを張る
CREATE TABLE `hoge_sessions` (
`id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`session_id` VARCHAR( 255 ) NOT NULL ,
`data` TEXT NULL ,
`created_at` DATETIME NULL ,
`updated_at` DATETIME NULL
) ENGINE = innodb;
ALTER TABLE `hoge_sessions` ADD INDEX `session_id` ( `session_id` ) ;
ALTER TABLE `hoge_sessions` ADD INDEX `updated_at` ( `updated_at` ) ;
CREATE TABLE `fuga_sessions` (
`id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`session_id` VARCHAR( 255 ) NOT NULL ,
`data` TEXT NULL ,
`created_at` DATETIME NULL ,
`updated_at` DATETIME NULL
) ENGINE = innodb;
ALTER TABLE `fuga_sessions` ADD INDEX `session_id` ( `session_id` ) ;
ALTER TABLE `fuga_sessions` ADD INDEX `updated_at` ( `updated_at` ) ;
コメントをはずす
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rake db:sessions:create")
config.action_controller.session_store = :active_record_store
Rails::Initializer.runのブロックが終わってから書く
CGI::Session::ActiveRecordStore::Session.table_name = 'hoge_sessions(またはfuga_sessions)'
:secret部分のコメントをはずす
protect_from_forgery :secret => 'hogehogefugafuga'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:101:in `evaluate_init_rb': undefined method `configuration' for #<String:0xb6973b80> (NoMethodError)
Dir[File.join(File.dirname(__FILE__), 'lib/*')].each { |file| load file }
require 'array'
require 'hash'
require 'route'
require 'route_set'
「インターネット異性紹介事業」とは、次の1 〜 4 のすべてを満たす事業をいいます。
- 面識のない異性との交際を希望する者(異性交際希望者といいます。)の求めに応じて、その者の異性交際に関する情報をインターネット上の電子掲示板に掲載するサービスを提供していること
- 異性交際希望者の異性交際に関する情報を公衆が閲覧できるサービスであること
- インターネット上の電子掲示板に掲載された情報を閲覧した異性交際希望者が、その情報を掲載した異性交際希望者と電子メール等を利用して相互に連絡することができるようにするサービスであること
- 有償、無償を問わず、これらのサービスを反復継続して提供していること
| 日 | 月 | 火 | 水 | 木 | 金 | 土 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |