shokos Advent Calendar 2012一日目 rails ActiveAdminでらくらくCRUDをつくる! Active Admin | The administration framework for Ruby on Rails スケジュール管理アプリ、Popuraをつくりました。 rails new Popura がーっとファイルやフォルダが作られ、インストールも走ります。 プロジェクトに移動。 cd Popura Gemfileを開いて下記を追加。 gem 'activeadmin'インストールコマンドを走らせます。 bundle install --path vendor/bundler rails generate active_admin:install DB定義をします。 rails g model schedule plan:string summary:
jQuery Mobileつかってますか? jQueryでキャラを立てたいわけじゃないんですが...,たびたびのjQueryネタです.なんだかんだで需要が高く,最近は実案件で触る機会があったので情報を残します. いくらお手軽でも,まじめに使うならこれぐらいはやっておかないとダメじゃないかと思う設定のポイントを軽く紹介.Loading...とかデフォルト英語なラベルの変更とかです. 設定の初期化 デフォルトの文字表示やクラス名等の設定を変更するときは,Configuring Defaultsによると,jQuery本体とjQuery Mobileの間に初期化スクリプトを挿入します. <script src="http://code.jquery.com/jquery-1.5.2.min.js"></script> <script type="text/javascript"> $(docume
例えばRails Pluginを拡張する場合は、RAILS_ROOT/libにplugin拡張ライブラリ用のディレクトリを用意します。 lib/plugins.rb lib/plugins/ext.rb lib/plugins/ext/ AcsAsSearchableを拡張する場合は、lib/plugins/ext以下に以下のようにActsAsSearchableプラグインの構成と同じようにファイルを配置。 lib/plugins/ext/acts_as_searchable.rb lib/plugins/ext/acts_as_searchable/ lib/plugins/ext/acts_as_searchable/acts_as_searchable.rb lib/plugins/ext/acts_as_searchable/lib/estraierpure.rb 各ファイルの中身
このドメインは お名前.com から取得されました。 お名前.com は GMOインターネットグループ(株) が運営する国内シェアNo.1のドメイン登録サービスです。 ※表示価格は、全て税込みです。
こんにちは、(主に)LDサービスのインターフェース部分に携わらせてもらっている油井です。 現在ホットな JavaScript-library の一つとして「jQuery」の名をあげることができますが、このライブラリのプラグインとして動作するjTemplatesというHTMLテンプレートエンジンにも、(個人的にはですが)注目しています。 http://jtemplates.tpython.com/ そこで、以下、私がjTemplatesを触ることにより知り得た『jTemplatesでHTMLを書くときに知っておきたい8つのこと』について言及していきたいと思います。 ※ 今回の記事では「jQuery1.2.1-非圧縮版」そして「jTemplates0.5.0-非圧縮版」を使用することを想定しています。 1, (特殊変数である)$Qの正体 jTemplatesには$Tと$Pそして$Qという特殊変
Tips, techniques, and tutorials for the jQuery JavaScript library Many months ago, I posted a note to the jQuery discussion list showing a script I wrote that uses the Interface plugin's ScrollTo() method to automatically scroll smoothly to any id or named anchor on the current page when clicking on a same-page link. The code was unwieldy and unneccessarily long, but it worked. Anyway, have you ex
This domain may be for sale!
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
file_column の内部構造についてメモ。 Rails におけるファイルアップロードの仕組みについて。 まず file_column を使わずにどうやってファイルをアップロードするのかというところから始める。 Entry モデルに image というファイル用のカラムがあったとする。アップロード用のフォームは次のような感じ。 <% form_tag({:action => 'create'}, :multipart => true) do %> <%= file_field 'entry', 'image' %></p> <% end %> file_field() は という HTML を生成するヘルパメソッドである。form_tag() で :multipart => true と指定されていることに注意。これがないとアップロードできない。 アップロードされたファイルを受け取るコ
To edit pages or tickets please login with username/password: aaf/aaf Using the integrated DRb Server What's this good for? In production environments most often multiple processes are responsible for serving client requests. Sometimes these processes are even spread across several physical machines. Just like the database, the Ferret index of an application is a unique resource that has to be sh
fastercsvを使うだけ.ruby標準のcsvライブラリは激遅."で囲ってあるのも対応. fastercsvのインストール $ gem install fastercsv 次のファイルをcsv.rb とでもして保存 #!/usr/bin/env ruby require 'rubygems' require 'fastercsv' cols = ARGV.shift.split(",") FasterCSV.foreach(ARGV.shift) do |row| puts cols.map{|c| "\"" + row[c.to_i] + "\""}.join(",") end csv.rb の使い方 1列目と3列目を取り出す(行の数え方が0オリジンなので,cut -f2,4に相当) csv.rb 1,3 file.csv
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
→ ‘gemsonrails’ aka ‘vendor everything’ What Link or freeze RubyGems into your rails apps, instead of just plugins. This allows you to ‘vendor everything’ – pushing all dependent gems into your rails app thus ensuring your application will be guaranteed to work when deployed. Your application is no longer dependent on the gems that are/aren’t available on your target deployment environment. Instal
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く