succi0303 / bindr Goto Github PK
View Code? Open in Web Editor NEWプログラミング関連の連載記事を集めて検索するサイト。
Home Page: https://bindr-dot.herokuapp.com
プログラミング関連の連載記事を集めて検索するサイト。
Home Page: https://bindr-dot.herokuapp.com
検索時のアルファベットの一致をcase insensitiveにしたい。
LIKE
は、元来case insensitiveであるが、postgresqlに限ってはそうではない。
Herokuの標準データベースはpostgresqlである。
Heroku上でcase insensitiveにするためにILIKE
を使いたいが、現在のtest/development環境であるsqlite3ではILIKE
は使えない。
上記の問題を解決するためにtest/development環境のデータベースをpostgresqlに変更したい。
touch
を使って簡単に実現できそう。
class Page < ActiveRecord::Base
belongs_to :binder, touch: true
「連載」は「連載記事」に統一する。
DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base to find
. Please pass the id of the object by calling .id
. (called from block (3 levels) in <top (required)> at /vagrant/spec/controllers/binders_controller_spec.rb:101)
PCのブラウザで表示したとき、テキストの入力欄が画面いっぱいに広がらないようにする。
ただし、スマートフォンのブラウザで表示したときには、画面いっぱいに表示するようにしたい。
文字サイズが小さすぎて目に悪い気がする。
URLの表示自体をなくしても良い気もする。ただ、リンク先がどこのサイトか分かったほうが、リンクを開こうという気持ちのハードルが下がると思うので、当面URLの表示は残す。
全件を登録すると、Herokuのホビープランのデータベースレコード登録件数の制限を超えてしまうため、一時的に登録する件数を減らした状態にしておきたい。
「記事の登録」の「記事を削除する」ボタンの横に「URLからタイトルを取得する」ボタンを追加する。ボタンをクリックした時に、入力したURLからリンク先のタイトルを取得して、記事タイトルに値を設定する。
kaminariのpage_entries_infoの部分で全体の件数を分かるため、それと別に件数を表示する必要はないと思う。ヘッダの件数表示をなくせば、コントローラで@binder_countを持つ必要がなくなる。
連載記事ページが、全体的にデカ文字が多くて目が疲れる気がするため。
ユーザ一覧ページは、テーブル形式で以下の内容を表示する。
content_forを使って、ページ毎に異なるRSSのauto_discovery_link_tagを表示するようにしているはずだが、ページ遷移した時にauto_discovery_link_tagが更新されない。
ブラウザをリロードすると更新されるようである。
個別記事のURLが、iPhoneなどで閲覧した時に画面端で折り返ししない。
おそらく、word-wrap: break-word
で解決すると思う。
【CSS】長い文字列をCSSで強制的に改行させたいときは『word-wrap:break-word;』を使うべし。 - すたら日記
page_entries_info
の英語メッセージは以下の通り。
page_entries_info:
one_page:
display_entries:
zero: "No %{entry_name} found"
one: "Displaying <b>1</b> %{entry_name}"
other: "Displaying <b>all %{count}</b> %{entry_name}"
more_pages:
display_entries: "Displaying %{entry_name} <b>%{first} - %{last}</b> of <b>%{total}</b> in total"
サイトの説明文章には以下のような内容を含めたい。
更新日時: 〜 を 更新: 〜前に変更する。
文字サイズが大きすぎて眼が疲れる気がするため.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.