東銀座 にある 銀座 じゃのめ 銀座三丁目店 にて、 500円 で天丼を食べてきました。 ものによって 390円 だったり 500円 超えたりする お店です。

ごはんが少ないように見えるかもしれませんが、器が深くてごはんもどっさり入っています。
Continue reading 東銀座 じゃのめ 500円 でうどん・天丼を食べる東銀座 にある 銀座 じゃのめ 銀座三丁目店 にて、 500円 で天丼を食べてきました。 ものによって 390円 だったり 500円 超えたりする お店です。

ごはんが少ないように見えるかもしれませんが、器が深くてごはんもどっさり入っています。
Continue reading 東銀座 じゃのめ 500円 でうどん・天丼を食べるI bumped into the following error when I was creating API program. The origin was devise gem.
NoMethodError (undefined method `failure_app’ for nil:NilClass)
I used sign_in method for unauthorized user.
The API in construction, we have to make unauthorized user able to login, so I wrote logging in procedure for all users, including unauthorized users. Then, devise and warden rejected unauthorized user and raised error.
Write the following setting into config/initializer/devise.rb.
|
1 |
config.allow_unconfirmed_access_for = 2000.years |
Or write the following method into the model class that is used by devise for authentication. User class for example.
|
1 2 3 4 |
private def confirmation_period_valid? return true end |
I recommend latter solution.
confirmation_period_valid?confirmation_period_valid? method is defined at the module Devise::Models::Confirmable of devise gem.
銀座周辺で毎日のランチを平均550円未満に抑える方法を書きます。 ワンコインランチを探すというのも手なのですが、 今回は ワンコインではないランチを考えます。
PREMIUM PASS を買うと、毎日のランチを平均550円以下に抑えることができます。
PREMIUM PASS vol. 3 があれば、 500円 のランチが 29回 食べられる計算になります。 (13:00 以降 でないと使えないものを除くと、 21回 食べられる計算になります。)
1か月のうち、 ランチを外で食べるのは (私の場合)だいたい 20回 です。 要するに 20日全日、 500円でランチを食べられることがわかります。
PREMIUM PASS vol. 3 の価格が 980円 ですから、 ( ( 980 + 500 times 20 ) div 20 = 549 ) 円 で毎日のランチが食べられる計算になります。
仮に PREMIUM PASS に載っているお店に行かなくても、 500円 のランチを食べるんだったら 平均して ランチのコストは同じになります。
470円 で食べられる蕎麦もありますが、 そういったものばかりではいやになる、 だけど高いランチはいやだという方におすすめの一冊です。
今は東銀座で働いていますが、 東銀座からでも徒歩で行ける範囲のお店が多く載っています。 銀座、銀座1丁目、新橋、東銀座あたりで働いている方におすすめです。
新宿など、他のエリアでも同じような冊子が売られています。 東京だけでなく他の都道府県のもありますので、「ランチパスポート」を Amazon で検索 してみてください。
In Rails, I upgraded Cells gem from 3.11.3 to 4.0.2. And I upgraded Rails from 4.1.9 to 4.2.4 together. Here, I wrote what I did about Cells upgrade.
Basic instruction is in From Cells 3 to Cells 4 Upgrading Guide. It’s not easy to upgrade it.
ある人が外注に出していたプログラムを なぜか私がデザイン、マークアップ含めて更新することになり、 Rails と Gem のバージョンを更新した。
その Rails のアプリケーションにテストコードは一切なかった。
リリース前のプログラムに対して変更を行いました。
If you use functions relates to device or form tags, the application will stop working after upgrading to Cells 4. Then I created ApplicationCell as a parent class of all Cell class.
アプリケーションを見ながら 次のような ApplicationCell を作りました。 include で取り込んでいるモジュールは、 エラーが出る度に順次取り込んでいったものです。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
class ApplicationCell < Cell::ViewModel include Cell::Slim include ActionView::Helpers::DateHelper include ActionView::Helpers::TextHelper include ActionView::Helpers::NumberHelper include ActionView::Helpers::FormHelper include ActionView::Helpers::FormOptionsHelper include ERB::Util def self.helper_method(*) end def dom_class(record, prefix = nil) ActionView::RecordIdentifier.dom_class(record, prefix) end def dom_id(record, prefix = nil) ActionView::RecordIdentifier.dom_id(record, prefix) end end |
self.helper_method is called by devise, so it is necessary. Cells では 既に意味のないメソッドになっているので、 何も処理は行いません。
In each cell class, there was a line “helper ApplicationHelper“.
Webrick を実行してページを開くと undefined method と表示されました。 Then, change helper statement to include statement with sed command.
Cells 4 から メソッドが変わりました。 ビューの中で使用されている render_cell を cell に書き換えました。
いままで書いていた人がコードを綺麗に保っていたので、 sedコマンドを使って簡単に変更できました。 書き方が何通りもある場合は、簡単にはいきません。
|
1 |
= render_cell :cell_name, :method_name, option_1: 1, option_2: 2 |
|
1 |
= cell(:cell_name).(:method_name, option_1: 1, option_2: 2) |
There were cell templates named like method_name.html.slim, but Cells 4 method cell(:cell_name).(:method_name) search template named method_name.slim. It caused exception.
In cells/lib/cell/view_model.rb of Cells 4, find_template method generates template name. Generated template name by that method doesn’t contain the string 'html'.
I removed “html” from template file name.
I know what I did is quick and dirty way.
In old code, cell template renders partial view app/views/shared/something.html.slim.
|
1 |
= render partial: 'shared/something', locals: {something: true} |
But it doesn’t work in Cells 4.
cells/lib/cell/templates.rb と cells/lib/cell/view_model.rb を見ながら次のようにコードを変更しました。
|
1 |
= render prefixes: ['app/views'], view: 'shared/_something.html', locals: {something: true} |
I had not only to create prefixes and view value, but change view value.
app/views内のテンプレートを呼び出す際のメソッドを ApplicationCell に作ったほうがよかったかもしれません。
Cell の中に self.view_paths += ['app/views'] を加えると、 app/views/cell_name の中でテンプレートを探すようになります。 つまり、次のように変更しても動くようになります。
|
1 |
= render view: '../shared/_something.html', locals: {something: true} |
東銀座にある 太常うどん 本店 に行ってきました。 がんばれば 500円 のワンコインランチにできます。 標準的な価格としては 600-700 円 くらいだと思います。

江戸時代から続く八百屋が から 始めたうどん屋です。
化学調味料を一切使わずに出汁をとっていて、 安心してつゆまで飲み干せるうどんになっています。 また 具材には 野菜が多く使われており、 その野菜も築地市場から直接仕入れた 国産の野菜を使っています。 野菜なので 季節に合わせて具材の種類も変わります。
麺に使用している塩も無添加の国産物を使っています。 また 麺に使っている小麦は 香川から仕入れているそうです。
お店の前には、 仕入れた旬の野菜が売られています。
下の写真は かけうどん と ごぼう を注文して 500円 にしたものです。

はなまるうどんや丸亀製麺のように、 まずうどんを注文して、 具材をとって乗せていくシステムです。
かけうどんが 450円 ですので、 かけうどんと 50円 の具材を組み合わせれば ワンコインランチ のできあがりです。 500円 にする組み合わせは かなり限定されますし、 ボリュームの点でもいまいちなので、 600-700円 を想定しておくのがいいと思います。
無添加へのこだわりと、 新鮮な野菜がいただけるので 500円 を超えても仕方ないかなと思います。
野菜が本当に新鮮でおいしいです。
店内全面禁煙です。
夜は一品料理や鍋もいただけます。 もちろんお酒も飲めます。
壁にはピアノがあります。 ジャズの演奏が行われることもあるそうです。 案内は店内または 太常うどんウェブサイト をご覧ください。
最寄り駅は東銀座と築地市場です。 銀座、築地、新橋、汐留からでも歩いていけます。 新富町、 銀座1丁目 からだと遠く感じるかもしれません。
PREMIUM PASS Vol. 3を持っていくと、 本来700円のなめこうどんが500円で食べられます。 PREMIUM PASS Vol. 3 には有効期限がありますのでご注意ください。 また、 Vol. 4 などの後のバージョンに載っているかどうかはわかりません。